G
Guest
Hi,
I have a number of objects i would like to store in a list like struture.
They already have ID's associated with them so i would like to utilise these
ids as accessors the list..
At the moment I have approx 10 objects with ids that are spread out,
e.g 1, 12, 24, 56, 200,320....
now i dont want to create a list with space for 320 items when there are
only 10 actual objects which is what I would have to do if i used the above
IDs as the key to store/access the objects.
I'm sure this is a common problem and that there are solutions to avoid this
waste of space.
I'd appreciate if anyone can give me advice on how to strore these items
efficently and how to access them from a list like structure,
Thanks
Macca
I have a number of objects i would like to store in a list like struture.
They already have ID's associated with them so i would like to utilise these
ids as accessors the list..
At the moment I have approx 10 objects with ids that are spread out,
e.g 1, 12, 24, 56, 200,320....
now i dont want to create a list with space for 320 items when there are
only 10 actual objects which is what I would have to do if i used the above
IDs as the key to store/access the objects.
I'm sure this is a common problem and that there are solutions to avoid this
waste of space.
I'd appreciate if anyone can give me advice on how to strore these items
efficently and how to access them from a list like structure,
Thanks
Macca
