[Python-Dev] Cost-Free Slice into FromString constructors--Long
Runar Petursson
runar at runar.net
Thu May 25 17:59:18 CEST 2006
On 5/25/06, Guido van Rossum <guido at python.org> wrote:
>
>
> If you really need this for speed, I recommend you make it a custom
> extension.
>
> The custom extension is a good idea, and what we do now. But now that the
long algorithm is so fast, it would be nice to expose it at least at the C
level to use a substring. Any solution--be it buffer based or even an
module could have no reuse of the code without an End Pointer. If we added
the end pointer to a FromSubstring (or somesuch) function (leaving
PyLong_FromString alone), it would be easily reused from any parsing
module. Assuming it didn't have any negative performance implication.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20060525/8591e666/attachment-0001.htm
More information about the Python-Dev
mailing list