- 24 May, 2006 2 commits
-
-
Fredrik Lundh authored
results in a 2.5x speedup on the stringbench count tests, and a 20x (!) speedup on the stringbench search/find/contains test, compared to 2.5a2. for more on the algorithm, see: http://effbot.org/zone/stringlib.htm if you get weird results, you can disable the new algoritm by undefining USE_FAST in Objects/unicodeobject.c. enjoy /F
-
Fredrik Lundh authored
-
- 23 May, 2006 33 commits
-
-
Tim Peters authored
-
Tim Peters authored
-
Tim Peters authored
due to a module-level cache. Clearing the cache should make it stop showing up in refleak reports.
-
Fredrik Lundh authored
-
Tim Peters authored
`struct` module changes).
-
Andrew M. Kuchling authored
-
Bob Ippolito authored
-
Bob Ippolito authored
-
Andrew M. Kuchling authored
-
Bob Ippolito authored
-
Bob Ippolito authored
-
Bob Ippolito authored
-
Bob Ippolito authored
-
Andrew M. Kuchling authored
-
Bob Ippolito authored
-
Tim Peters authored
In rare cases of strings specifying true values near sys.maxint, and oddball bases (not decimal or a power of 2), int(string, base) could deliver insane answers. This repairs all such problems, and also speeds string->int significantly. On my box, here are % speedups for decimal strings of various lengths: length speedup ------ ------- 1 12.4% 2 15.7% 3 20.6% 4 28.1% 5 33.2% 6 37.5% 7 41.9% 8 46.3% 9 51.2% 10 19.5% 11 19.9% 12 23.9% 13 23.7% 14 23.3% 15 24.9% 16 25.3% 17 28.3% 18 27.9% 19 35.7% Note that the difference between 9 and 10 is the difference between short and long Python ints on a 32-bit box. The patch doesn't actually do anything to speed conversion to long: the speedup is due to detecting "unsigned long" overflow more quickly. This is a bugfix candidate, but it's a non-trivial patch and it would be painful to separate the "bug fix" from the "speed up" parts.
-
Fredrik Lundh authored
speed up splitlines and strip with charsets; etc. rsplit is now as fast as split in all our tests (reverse takes no time at all), and splitlines() is nearly as fast as a plain split("\n") in our tests. and we're not done yet... ;-)
-
Bob Ippolito authored
-
Bob Ippolito authored
-
Richard Jones authored
-
Richard Jones authored
-
Ronald Oussoren authored
-
Andrew M. Kuchling authored
at http://zestyping.livejournal.com/193260.html that 'erformance' really means something more general.
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
Ronald Oussoren authored
This patchs makes it possible to create a universal build on OSX 10.4 and use the result to build extensions on 10.3. It also makes it possible to override the '-arch' and '-isysroot' compiler arguments for specific extensions.
-
Ronald Oussoren authored
#1487105.
-
Georg Brandl authored
"base" parameter.
-
Ronald Oussoren authored
-
Richard Jones authored
Applied patch zombie-frames-2.diff from sf patch 876206 with updates for Python 2.5 and also modified to retain the free_list to avoid the 67% slow-down in pybench recursion test. 5% speed up in function call pybench.
-
Fredrik Lundh authored
approach as find/index
-
Fredrik Lundh authored
-
Tim Peters authored
since that's what it should be.
-
- 22 May, 2006 5 commits
-
-
Tim Peters authored
compiler warnings on Windows (signed vs unsigned mismatch in comparisons). Cleaned that up by switching more locals to Py_ssize_t. Simplified overflow checking (it can _be_ simpler because while these things are declared as Py_ssize_t, then should in fact never be negative).
-
Fredrik Lundh authored
for long repeats.
-
Fredrik Lundh authored
-
Bob Ippolito authored
-
Fredrik Lundh authored
total number of occurences
-