adjust-cache-deflate-buffer.patch 695 B

1234567891011121314151617
  1. diff -ru mesa-18.1.7.orig/src/util/disk_cache.c mesa-18.1.7/src/util/disk_cache.c
  2. --- mesa-18.1.7.orig/src/util/disk_cache.c 2018-08-24 19:25:19.000000000 +0300
  3. +++ mesa-18.1.7/src/util/disk_cache.c 2018-12-14 13:59:15.433631846 +0200
  4. @@ -721,8 +721,11 @@
  5. /* From the zlib docs:
  6. * "If the memory is available, buffers sizes on the order of 128K or 256K
  7. * bytes should be used."
  8. + *
  9. + * But that is performance optimization for large files. To keep stack usage
  10. + * in sensible amount (wrt. musl default stack) we use smaller stack on Alpine.
  11. */
  12. -#define BUFSIZE 256 * 1024
  13. +#define BUFSIZE 4 * 1024
  14. /**
  15. * Compresses cache entry in memory and writes it to disk. Returns the size