• Post Reply Bookmark Topic Watch Topic
  • New Topic

is there opensource existing solution for StringIntMap?

 
Dan Hop
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
from a performance standpoint I would think there were numerous solutions for Map<Object,primitive> so to speak..

poking around I see there are some implementations with int keys, but nothing with object,int (which Is what I'm looking for).

I suppose it would not be hard to implement one, but.really is that necessary. obviously it would a
ObjectInt map would require less overhead then <Object,Integer>.

thoughts pointers?
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fastutil provides a primitive-based collection framework.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Google "guava" library, which includes the whole of Google Collections library, has a number of very fast map classes, all of which are fully <generic> and will meet your needs. All free, open source, supported, etc.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!