Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: (tye)Re: Base36 numbers: speed and golfby demerphq (Chancellor) |
on Feb 28, 2002 at 16:31 UTC ( [id://148270]=note: print w/replies, xml ) | Need Help?? |
Well, this was interesting. I wrote a version of your code that used an array and ord instead of the hash. It was 10% slower in my tests which quite suprised me. I really thought the difference in lookup time between an array and a hash would outway the cost of the ord function, but not so.
Thanks, very educational.
Yves / DeMerphq
In Section
Seekers of Perl Wisdom
|
|