0

The documentation for Node's zlib library says:

All zlib APIs, except those that are explicitly synchronous, use libuv's threadpool. This can lead to surprising effects in some applications, such as subpar performance (which can be mitigated by adjusting the pool size) and/or unrecoverable and catastrophic memory fragmentation.

Quite a thing to throw in there with no further explanation! What are they talking about?

Timmmm
  • 88,195
  • 71
  • 364
  • 509
  • I assume you're not asking what memory fragmentation is, but rather how it occurs from the usage of libuv's threadpool. Just in case, though: [What is memory fragmentation?](https://stackoverflow.com/q/3770457/1541563) – Patrick Roberts Feb 24 '20 at 15:46
  • Yes - see the title of this question. – Timmmm Feb 24 '20 at 16:44
  • > Because of how some operating systems handle memory allocation and deallocation, this may lead to to significant memory fragmentation – Estradiaz Mar 10 '20 at 08:06
  • Ok but why? Does this mean that I can't use the API? It's all very vague. – Timmmm Mar 10 '20 at 21:27

0 Answers0