in reply to (tye)Re: Base36 numbers: speed and golf
in thread Base36 numbers: speed and golf

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
--
When to use Prototypes?
Advanced Sorting - GRT - Guttman Rosler Transform

  • Comment on Re: (tye)Re: Base36 numbers: speed and golf