(none)
Denys Duchier
Denys.Duchier at ps.uni-sb.de
Mon Apr 22 22:37:20 CEST 2002
halamostafa at hotmail.com (HALA MOSTAFA) writes:
> I have a class for which i want to keep a list of items as one of the
> private members. The items are subject to frequent changes, so i kept
> them in a dictionary. Is there an overhead associated with extensive
> use of dictionaries (noting that the dictionary contains a small
> number of entries)? If so, can you please guide me as to what data
> structure i should use instead, bearing efficiency in mind?
The real questions are (1) what operations should be supported (2)
which ones are most frequent... Then again, if the size of your data
is small, you could be using bananas to represent it and it wouldn't
make a measurable difference :-)
Cheers,
--
Dr. Denys Duchier Denys.Duchier at ps.uni-sb.de
Forschungsbereich Programmiersysteme (Programming Systems Lab)
Universitaet des Saarlandes, Geb. 45 http://www.ps.uni-sb.de/~duchier
Postfach 15 11 50 Phone: +49 681 302 5618
66041 Saarbruecken, Germany Fax: +49 681 302 5615
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
More information about the mozart-users
mailing list