summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2014-05-02 14:49:05 +0200
committerSebastian Rasmussen <sebras@gmail.com>2014-05-02 14:53:26 +0200
commit3077ed97c54728bf39afe128532577a867870fc1 (patch)
treed85696167306b6a313dc9eaf0a61b5cec07a1984
parent7e9fd33a6648007692ef78e341ca8d19e312243f (diff)
downloadmupdf-3077ed97c54728bf39afe128532577a867870fc1.tar.xz
Raise CURL transfer size from 4KByte to 1MByte in X11 viewer
Previously, the overhead for the HTTP requests and responses was too high, e.g. pdfref17.pdf would result in almost 8000 separate HTTP requests (but with this patch about 30.
-rw-r--r--platform/x11/curl_stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/curl_stream.c b/platform/x11/curl_stream.c
index 90206700..e94904e9 100644
--- a/platform/x11/curl_stream.c
+++ b/platform/x11/curl_stream.c
@@ -14,7 +14,7 @@
#define DEBUG_MESSAGE(A) do { } while(0)
#endif
-#define BLOCK_SHIFT 12
+#define BLOCK_SHIFT 20
#define BLOCK_SIZE (1<<BLOCK_SHIFT)
#ifdef _WIN32