libkiwix/src/common
Matthieu Gautier 82cba79179 Do not make unnecessary copy when serving binary content.
Binary content do not need to be modified, so we don't need to copy it.
We can directly serve it from the internal zim (cluster) buffer.

The handle_content function now getArticleObjectByDecodedUrl instead of
getContentByDecodedUrl.

This is to get the mimetype of the article and copy the content only when
needed (getContentByDecodedUrl always copy the content).
Thus, handle_content is a bit more complex as it need to do some
manipulation previously made in getContentByDecodedUrl.

The main change is that if the content is binary, we serve the content
with a callback response who will get the content chunks directly from
the blob buffer.
2016-10-07 18:23:47 +02:00
..
kiwix Do not make unnecessary copy when serving binary content. 2016-10-07 18:23:47 +02:00
base64.cpp + add support of favicon in library manager 2011-05-14 10:29:55 +00:00
base64.h + add support of favicon in library manager 2011-05-14 10:29:55 +00:00
componentTools.cpp + use _strdup on Windows 2014-05-16 15:06:06 +02:00
componentTools.h + XR29 port for Windows 2014-05-16 14:39:50 +02:00
networkTools.cpp Port networkTools.cpp to Mac OS X. 2014-06-17 17:46:54 +02:00
networkTools.h + port ip detection for server mode to MS/Windows 2012-10-22 07:12:22 +00:00
otherTools.cpp + Add necessary header includes 2014-04-02 17:03:53 +02:00
otherTools.h + Add necessary header includes 2014-04-02 17:03:53 +02:00
pathTools.cpp Fix kiwix-mange problem with relative paths 2016-09-04 21:43:26 +02:00
pathTools.h Fix kiwix-mange problem with relative paths 2016-09-04 21:43:26 +02:00
regexTools.cpp + change call of function appendToFirstOccurence() and replaceRegex() 2012-06-28 12:53:06 +00:00
regexTools.h + change call of function appendToFirstOccurence() and replaceRegex() 2012-06-28 12:53:06 +00:00
resourceTools.cpp add "eng" to stop word map + pragma mark in indexer.cpp + progress calculation 2016-07-04 21:10:03 +02:00
resourceTools.h add "eng" to stop word map + pragma mark in indexer.cpp + progress calculation 2016-07-04 21:10:03 +02:00
stringTools.cpp Fix to get new getSuggestions() working on Android 2015-08-16 18:09:18 +02:00
stringTools.h correction of double inclusion 2016-05-21 19:08:44 +02:00
tree.h STD style tree code (for a better suggestion system) 2012-11-06 16:39:04 +00:00