Alan Burlison
12 years ago
I have an immutable, sorted list of around 1 million pairs of 32-bit
integers that I'm searching with a binary chop - the usage is simply
mapping one integer value to another. I've used a Vector of 2-tuples,
which takes (as far as I can tell) around 30-32Mb of memory, the
theoretical lower limit being around 8Mb. Performance is fine but I'm
wondering what Scala data types would have the smallest memory
overhead, e.g. Array versus Vector etc and are there any tricks
(@specialized?) that I can pull to reduce the required memory.
integers that I'm searching with a binary chop - the usage is simply
mapping one integer value to another. I've used a Vector of 2-tuples,
which takes (as far as I can tell) around 30-32Mb of memory, the
theoretical lower limit being around 8Mb. Performance is fine but I'm
wondering what Scala data types would have the smallest memory
overhead, e.g. Array versus Vector etc and are there any tricks
(@specialized?) that I can pull to reduce the required memory.
--
Alan Burlison
--
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Alan Burlison
--
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.