packages/utils/xdelta3/patches/001-decrease-default-window-size.patch

20 lines
531 B
Diff
Raw Normal View History

diff --git a/xdelta3.h b/xdelta3.h
index 5dafd8d..22bc37f 100644
--- a/xdelta3.h
+++ b/xdelta3.h
@@ -38,12 +38,12 @@
* buffer is used directly.
*/
#ifndef XD3_DEFAULT_WINSIZE
-#define XD3_DEFAULT_WINSIZE (1U << 23)
+#define XD3_DEFAULT_WINSIZE (1U << 16)
#endif
/* Default total size of the source window used in xdelta3-main.h */
#ifndef XD3_DEFAULT_SRCWINSZ
-#define XD3_DEFAULT_SRCWINSZ (1U << 26)
+#define XD3_DEFAULT_SRCWINSZ (1U << 19)
#endif
/* When Xdelta requests a memory allocation for certain buffers, it