This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Reduce memory usage with a Buffer pool #1337
Closed
Description
Coming out from a productive chat with @mafintosh about buffer allocation, garbage collection and overall main perf sources of problems in JavaScript still today. Also got introduced to https://github.com/mafintosh/buffer-reuse-pool.
We can potentially (pretty much 100% certain) reduce the memory usage of js-ipfs and js-libp2p by adopting a similar strategy and also use it to cap memory usage.