Gawain Bolton added the comment:
Note: I have a patch which fixes this.
--
___
Python tracker
<https://bugs.python.org/issue36787>
___
___
Python-bugs-list m
New submission from Gawain Bolton :
Python 2.7.16 (default, Apr 6 2019, 01:42:57)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> p
Gawain Bolton added the comment:
Here's a modified version of the patch to Objects/intobject.c which
__does__ use the two-digits-at-a-time optimization.
Compared to the int_decimal_conversion_trunk.patch, my tests show a
further 12.5% improvement with two digit numbers - positive or neg
Gawain Bolton added the comment:
Mark,
I haven't tried your latest patch but I tried your patch3 and obtained
the same performance improvement for long integers, namely 3.1x faster.
This is truly an excellent improvement, my hat's off to you!
As for the basic integers, I'm wor
Gawain Bolton added the comment:
Yes I agree it would be a good idea to have one definition and one
instantiation of the _decimal_digit_table[] and BitLengthTable[32] arrays.
Where do you suggest these tables could be put? I'll be happy to
provide an updated patch if you can let me
New submission from Gawain Bolton :
Converting integer & long types to their ASCII representation is a task
which can be quite CPU intensive due to the division & modulo
operations. For long integers having hundreds or thousands of digits,
this can take a truly significant amount of
Gawain Bolton added the comment:
On the contrary, RFC 1738 does mention the port number in section 3.1.
Common Internet Scheme Syntax:
While the syntax for the rest of the URL may vary depending on the
particular scheme selected, URL schemes that involve the direct use
of an IP-based
Changes by Gawain Bolton:
--
title: urlparse() -> urlparse() does not handle URLs with port numbers properly
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.o
New submission from Gawain Bolton:
The urlparse() function in urlparse module does not handle URLs without
an explicit scheme and with port numbers.
The following works as expected:
>>> urlparse.urlparse('foo.bar.com','http').scheme
'http'
But if the U