From: ·······@cs.umass.edu
Subject: Re: optimizing array lookups - need help
Date: 
Message-ID: <10892@dime.cs.umass.edu>
Two points:
1. there was a discussion about a year ago about trade-offs between hash tables
and a-lists (or property lists, I don't remember which), which eventually
arrived at the conclusion that the point at which it was more efficient to use
one scheme or the other was implementation-dependent, but around 30 for a
lispm.  This is the closest thing I can recall to what you're asking about.
2. You're essentially describing tries, and since you don't say how you're
going to access the data in the lists, it's not at all clear that you'd have
any savings at all, let alone save time.  The whole point of using a trie is
that you can use the character as an index, and get the data as quickly as
possible.  (How could you improve on an array reference for speed?)  Space is,
of course, an issue, and you might be able to save space this way, but it
seems like you're going to lose more than you gain.
- David Forster