Nicholas Clark wrote: > On Wed, Sep 11, 2002 at 12:50:28PM +0200, Leopold Toetsch wrote:
> I like this idea. (but I've no idea of the subtle implications) There are only PDB_eval, pxs.c and imcc as users currently, I can't really see subtle implications whatsoever. > Where you thinking of building the hash table in one hit using a linear > parse over the op names the first time a lookup is requested? Yes, ecactly this. > An alternative (more complex, may not be worth it) is to perform the hash > construction in a lazy fashion: This is a nice approach but by far not worth the effort. Might be to reconsider, when we have 10^5 ops, sorted by there usage count ;-) > ... I don't know if it's faster, but > it feels nicer :-) Yes, in above case. > Nicholas Clark leo