dweiss commented on pull request #271:
URL: https://github.com/apache/lucene/pull/271#issuecomment-907578312


   Just a note from the side (I'm not familiar with this code): somehow I don't 
believe switching to a soft reference here is solving anything - it just shoves 
the problem under the rug at the cost of potentially recreating that value over 
and over in adverse heap conditions... if you're low on memory, it's sometimes 
better to hit an OOM... this way you're aware your heap is insufficient. A soft 
reference here and there will make everything trudge forward but may lead to 
dire runtime performance (a vicious cycle when the GC is freeing references, 
code keeps recreating them).


-- 
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