Anyway an extra ord() should be faster than any internal hashfunction.You can closely estimate the efficiency of perl code by counting the number of simple operations, and an ord() and array lookup is one more operation than a hash lookup. I would expect it to be about 25% slower. Feel free to benchmark, though.
In reply to Re^6: An array of boolean values in a bitfield
by ysth
in thread An array of boolean values in a bitfield
by kyle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |