good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
YYAL10CIby gryng (Hermit) |
on Mar 12, 2001 at 22:09 UTC ( [id://63872]=note: print w/replies, xml ) | Need Help?? |
When in doubt add another table:
As bonus, if you don't count the additional table code (aw, come on, please :) ), it's shorter! You can increase this speed some more if you want, but the only way to get a huge increase is to create a bigger table (instead of 10 or 100 elements, try 10,000!). Not sure if it's worth going the next step (the memory and upfront cost). Enjoy,
In Section
Cool Uses for Perl
|
|