java - HashSet internally uses hashmap for its implementation, then why is hashmap faster than hashset? -
hashset internally uses hashmap implementation, why hashmap faster hashset?
i tried reading above mentioned post in search unable find clear answer
because hashset uses hashmap. must incur cost of using hashmap, plus overhead of hashset itself.
Comments
Post a Comment