I'm building a simulator that aims to use space sparingly, and I want to use Multimap to store stuff, since it is such a nice abstraction ;-)
I was wondering if the google collection implementation (Multimap specifically) is designed to have a small footprint as possible or, if that is a secondary objective? (haven't looked at the code)
I'm mostly worried about the footprint of many instances of HashMultimap. How is the footprint compared to a HashMap combined with a collection to simulate the same behavior as Multimap?
Also, would it make sense for me to extract the relevant interfaces and classes directly into my project rather than using the provided jar to save space. I'm guessing that only the classes that I actually instantiate will be loaded and take up memory, but I'm not sure... In any case, I'm mostly worried about the large number of instances that I need or want to use in my simulator.
Could anyone give me some input on these matter?
Thanks!
All the best,
:) Hein
To reduce memory usage, use an ArrayListMultimap, since ArrayLists are
smaller than HashSets.
> --
> Google Collections Library - users list
> http://groups.google.com/group/google-collections-dev?hl=en
>
> To unsubscribe, send email to:
> google-collections...@googlegroups.com