[Haskell-cafe] Fast Integer Input
200901104 at daiict.ac.in
200901104 at daiict.ac.in
Mon Aug 23 11:06:02 EDT 2010
>>Does the length of those numbers happen to be fixed? It they are all
>>exactly 13000 decimals then it should be possible to create a more
>>optimised parser.
Well actually they can have any number of digits less than 13000.
But the only post processing of the numbers is calculating the
binary logarithm of the number. Does that help?
>>It would also help if you could post a working example of your code
>>and some test data somewhere so people can run it and test if for
>>themselves.
I have a slow Internet connection. So I will attach the script I
used to generate the cases instead.(Note: It will take a few minutes
to complete)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 204 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100823/ad5d4bd3/test.py
More information about the Haskell-Cafe
mailing list