lordcheng10 edited a comment on pull request #3061:
URL: https://github.com/apache/bookkeeper/pull/3061#issuecomment-1042923877


   > What about making this new behaviour configurable?
   Like adding a new boolean parameter 'autoShrink'?
   
   
   In the constructor method of this class of  ConcurrentLongLongPairHashMap, 
pass in the parameter MapIdleFactor, the default MapIdleFactor=0, if you want 
to enable automatic shrink, then set MapIdleFactor>0,like:
   public ConcurrentLongLongPairHashMap(int expectedItems, int 
concurrencyLevel,int MapIdleFactor) {
   ...
   }
   
   What do you think? @eolivelli 


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


Reply via email to