Re: I need a map for long and double

2013-11-06 Thread Gary Gregory
On Wed, Nov 6, 2013 at 12:47 PM, Ted Dunning wrote: > Serialization of primitive maps is easy to implement since the maps pretty > much just consist of a couple of arrays. Most of the developers involved > will shy away from java serialization or any dependency on some other > framework. > > So

Re: I need a map for long and double

2013-11-06 Thread Ted Dunning
Serialization of primitive maps is easy to implement since the maps pretty much just consist of a couple of arrays. Most of the developers involved will shy away from java serialization or any dependency on some other framework. So is that really a show stopper? On Wed, Nov 6, 2013 at 6:11 AM,

Re: I need a map for long and double

2013-11-06 Thread Gary Gregory
On Tue, Nov 5, 2013 at 11:49 PM, Gary Gregory wrote: > Thank you all for replying. > > HPPC looks promising and it's Apache 2 licensed. I'll give it a closer > look. > HPPC does not allow for serialization and even says so, odd. Now looking at fastutil... Gary > > Gary > > > On Tue, Nov 5, 201

Re: I need a map for long and double

2013-11-06 Thread Gary Gregory
On Wed, Nov 6, 2013 at 2:19 AM, Emmanuel Bourg wrote: > What about our own dog food? > > http://commons.apache.org/primitives/ > No maps, no generics :( Gary > > Emmanuel > > > Le 06/11/2013 02:39, Gary Gregory a écrit : > > Hi All: > > > > I'm looking for a Map implementation that takes a St

Re: I need a map for long and double

2013-11-05 Thread Emmanuel Bourg
What about our own dog food? http://commons.apache.org/primitives/ Emmanuel Le 06/11/2013 02:39, Gary Gregory a écrit : > Hi All: > > I'm looking for a Map implementation that takes a String as a key and a > long as the value (and another taking a double as the value). I'd rather > not take th

Re: I need a map for long and double

2013-11-05 Thread Paul Benedict
Same here. I didn't know this existed. Thanks. On Tue, Nov 5, 2013 at 10:49 PM, Gary Gregory wrote: > Thank you all for replying. > > HPPC looks promising and it's Apache 2 licensed. I'll give it a closer > look. > > Gary > > > On Tue, Nov 5, 2013 at 8:59 PM, Ted Dunning wrote: > > > Trove is G

Re: I need a map for long and double

2013-11-05 Thread Gary Gregory
Thank you all for replying. HPPC looks promising and it's Apache 2 licensed. I'll give it a closer look. Gary On Tue, Nov 5, 2013 at 8:59 PM, Ted Dunning wrote: > Trove is GPL (last I looked). > > Mahout has primitive collection implementations (and is obviously ASL). > > There are other impl

Re: I need a map for long and double

2013-11-05 Thread Ted Dunning
Trove is GPL (last I looked). Mahout has primitive collection implementations (and is obviously ASL). There are other implementations such as hppc (see http://labs.carrotsearch.com/hppc.html ) Mahout is a decent implementation, but I think that hppc has had a round or two more optimization. And

Re: I need a map for long and double

2013-11-05 Thread Bruno P. Kinoshita
Maybe Trove's TObjectMapLong?  [1] http://trove4j.sourceforge.net/javadocs/gnu/trove/map/TObjectLongMap.html   HTH,  Bruno P. Kinoshita http://kinoshita.eti.br http://tupilabs.com > > From: Gary Gregory >To: Commons Developers List >Sent: Tuesday, November 5,

Re: I need a map for long and double

2013-11-05 Thread Paul Benedict
I don't think anything like that exists. If your # of entries were reasonable, a theoretical implementation could allocate a big long[] array and hash into that. However, 150,000 is very large for an array; possible but I never done it. So I think the only thing you can really rely on is the standa