thetumbled commented on PR #23582:
URL: https://github.com/apache/pulsar/pull/23582#issuecomment-2470680545

   > 's also Obj2LongMap interface which would be applicable in this case when 
the value is a `long`, for example using Object2LongOpenHashMap implementation. 
In Object2LongOpenHashMap, there's a `trim` method to reduce
   
   No, there is no shrink logic triggerd in the test code, as i only add new 
item into the map, without any deletion. Shrinking logic is triggered by item 
deletion.
   The reason why `ConcurrentLongLongPairHashMap` is space efficient is that it 
use open hash addrressing with linear probing, which require less space to 
implement, while `HashMap` require more space to implement the data structure, 
and there is no any wrapper in `ConcurrentLongLongPairHashMap`. 
   As for Object2LongOpenHashMap, i guess it take up more space than  
`ConcurrentLongLongPairHashMap`  too, as it use wrapper. There is no any 
wrapper in  `ConcurrentLongLongPairHashMap` .


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