Jeff Sparkes writes:
I've been using alists because they're convenient and easy to
look at for
debugging.
I've just created a list of gtk-cursor-names with 77 values. Should I think
about using a hash table?
No. Lisp is not Python. :-)
You should think about optimizing so that commonly used values are at
the front, but other than that, as you noticed 77 cells is not a large
alist. The other possibility would be to use a plist, which I think
is actually preferred to alists in modern Lisp idiom (slightly more
efficient). However, alists print somewhat more nicely for debugging.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta