mpetazzoni / ttorrent

BitTorrent Java library with tracker and download client
http://mpetazzoni.github.com/ttorrent/
Apache License 2.0
1.38k stars 502 forks source link

Use BufferPool instead of creating and destroying ByteBuffers #223

Open viswamy opened 6 years ago

viswamy commented 6 years ago

Creating and destroying byte buffers in high load systems where GC pauses are considered very critical is an undesired scenario. I am creating this jira ticket to track an efficient implementation of buffer pool mechanism in which buffers can be reused over time which should reduce the memory pressure inside JVM. What do you think? Thanks!

Dead-off commented 6 years ago

Looks like a good idea. Do you want to implement it?:)

zanella commented 3 years ago

There are 3 open PRs that touch on the subject of memory usage: #184 , #195 , #35

You can review them :-)