Github user tdas commented on the pull request:

    https://github.com/apache/spark/pull/126#issuecomment-37501724
  
    @rxin It overrides stuff to make sure such things like traversing entire 
HashMap does not happen. They are meant for being drop-in replacements of scala 
HashMaps when applying certain added features like maintaining timestamps 
(TimeStampedHashMaps and TimeStampedWeakValueHashMap), or bounding the number 
of key-value pairs (BoundedHashMap). They are meant to be thread-safe, and used 
for metadata (not really for super-heavy usage like AppendOnlyHashMap for 
processing data). They are useful for easily replacing various scala HashMaps 
used for storing metadata, when we want to apply different policies for 
managing that metadata (TTL based cleanup vs bounded cache behavior).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to