rschmitt commented on PR #578:
URL: 
https://github.com/apache/httpcomponents-core/pull/578#issuecomment-4104420452

   > `ThreadLocal`s that can hold MBs of data make me very, very uncomfortable
   
   Two things worth keeping in mind here:
   
   1. Virtual threads make it economical to have on the order of 10,000 threads.
   2. Java is currently in the hot seat due to the DRAM shortage. A basic 
aspect of the JVM's design is to use the largest heap possible, because that 
results in more efficient garbage collection, but just over the last few months 
this is starting to become expensive. Reducing ephemeral garbage is still a 
good idea as far as it goes, but now would be a particularly bad time to 
increase memory _overhead_, i.e. the baseline amount of tenured heap memory we 
need to run.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to