|
Posted by Mazin07 on 09/20/05 05:18
I made a little PHP thingy where you can search for any string of
numbers in the first 8 million digits of pi.
However, they're currently stored in ASCII, which means it's 2bytes for
a digit, and it's horribly inefficient. I used perl to pack it as 2
digits a byte, basically storing it as hex without A-F.
My problem is, I need a fast way to search the file by the half byte.
Asides from reading all 8 million digits and converting it to hex, how
else can I do it?
[Back to original message]
|