• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

is there opensource existing solution for StringIntMap?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
fastutil provides a primitive-based collection framework.
 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic