At 7:17 PM +0100 8/9/04, Nicholas Clark wrote:
The code is messy and needs refactoring so that it can be subclassed to
generate lookup tables that return other sorts of structures, such as
potentially the token lookup in the perl5 core, and the NCI signature
lookup in nci.c, which is currently a linear search. Erk!

Hey, it's not bad for a 2-hour hack-up. :) More seriously, I was looking to implement the functionality in a way that the implementation would be invisible. A more sensible thing to do at this point would be to build up a hash so we'd get a single lookup rather than a series of string compares. That could be done, if someone cares to, by altering the perl code that generates nci.c from call_list.txt.


Heck, I'll go put that on the todo list.
--
                                Dan

--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to