Re: [Haskell-cafe] Data.Judy and StablePtr

2010-12-21 Thread Diego Souza
Thanks Gregory! Probably the solution would be recreating the FFI in a way that doesn't need the StablePtr. Not sure how to do this though. I'm going to test other things, like HashTable, before trying this. And let's see how it goes. ~dsouza On Mon, Dec 20, 2010 at 2:40 PM, Gregory Collins

[Haskell-cafe] Data.Judy and StablePtr

2010-12-20 Thread Diego Souza
Hello Haskellers, I'm playing a bit with Data.Judy. However, I noticed that using StablePtr incurs in some performance problems, I don't have any numbers but as a example use Int and ByteString as values and you can notice the difference without any benchmarking tool with the example that comes

Re: [Haskell-cafe] Data.Judy and StablePtr

2010-12-20 Thread Gregory Collins
Pointers are mapped to StablePtrs using *drumroll* a hash table, so you can give up on getting acceptable performance out of this combination IMO. G On Mon, Dec 20, 2010 at 5:06 PM, Diego Souza dso...@bitforest.org wrote: Hello Haskellers, I'm playing a bit with Data.Judy. However, I