Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » HashTableOf[X](Legacy code?)
HashTableOf[X] [message #1142049] Thu, 17 October 2013 07:12
Eclipse UserFriend
Hello Everyone,
I have been looking around the code in Eclipse source code and have come across something quite strange:
There seems to be a whole bunch of HashTableOf[X] classes in the org.eclipse.jdt.internal.compiler.util package. I am trying to figure out if the code would benefit by replacing them with a normal java.util.HashMap.
In particular I can't see any benefit of HashTableOfObject over HashMap - containsKey() in particular is O(N) rather then O(1). I suppose the primitive versions such as HashTableOfInt avoids boxing but I am not sure this was the thinking when they were created.

Another worrying thing is that they are located in the compiler.util package but they seem to be used all over the place (outside the scope of the compiler).

Any thoughts?
Previous Topic:HTML file for applets in Eclipse project
Next Topic:Spell Checker for Eclipse Custom Editor
Goto Forum:
  


Current Time: Sun Aug 31 14:40:34 EDT 2025

Powered by FUDForum. Page generated in 0.30967 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top