This content has been marked as final. Show 3 replies
You probably should not let performance influence your choice.
Use the one that best fits your application.
The main benefit of LinkedHashSet is that you can control the order of entries.
Generally the speed difference is not important.
For looking up elements its the same speed as HashSet. For updates, HashSet is slightly faster.
Care to read the API, boy?