Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added a slew of test for string replace, based various corner cases from | Andrew Dalke | 2006-05-24 | 1 | -0/+157 |
| | | | | | | | | | | the Need For Speed sprint coding. Includes commented out overflow tests which will be uncommented once the code is fixed. This test will break the 8-bit string tests because "".replace("", "A") == "" when it should == "A" We have a fix for it, which should be added tomorrow. | ||||
* | needforspeed: refactored the replace code slightly; special-case | Fredrik Lundh | 2006-05-24 | 1 | -84/+86 |
| | | | | constant-length changes; use fastsearch to locate the first match. | ||||
* | refactor unpack, add unpack_from | Bob Ippolito | 2006-05-24 | 3 | -62/+161 |
| | |||||
* | needforspeedindeed: use fastsearch also for __contains__ | Fredrik Lundh | 2006-05-24 | 1 | -4/+19 |
| | |||||
* | needforspeed: use "fastsearch" for count and findstring helpers. this | Fredrik Lundh | 2006-05-24 | 1 | -1/+109 |
| | | | | | | | | | | | | | | 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 | ||||
* | use Py_ssize_t for string indexes (thanks, neal!) | Fredrik Lundh | 2006-05-24 | 1 | -2/+2 |
| | |||||
* | Add missing svn:eol-style property to text files. | Tim Peters | 2006-05-23 | 1 | -1013/+1013 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2006-05-23 | 4 | -1020/+1019 |
| | |||||
* | test_struct grew weird behavior under regrtest.py -R, | Tim Peters | 2006-05-23 | 1 | -0/+2 |
| | | | | | due to a module-level cache. Clearing the cache should make it stop showing up in refleak reports. | ||||
* | return 0 on misses, not -1. | Fredrik Lundh | 2006-05-23 | 1 | -1/+1 |
| | |||||
* | Get the Windows build working again (recover from | Tim Peters | 2006-05-23 | 2 | -5/+5 |
| | | | | `struct` module changes). | ||||
* | Add item | Andrew M. Kuchling | 2006-05-23 | 1 | -0/+5 |
| | |||||
* | fix typo in _struct | Bob Ippolito | 2006-05-23 | 1 | -2/+2 |
| | |||||
* | forward declaration for PyStructType | Bob Ippolito | 2006-05-23 | 1 | -0/+1 |
| | |||||
* | Add two items | Andrew M. Kuchling | 2006-05-23 | 1 | -4/+8 |
| | |||||
* | fix linking issue, warnings, in struct | Bob Ippolito | 2006-05-23 | 1 | -4/+0 |
| | |||||
* | patch #1493701: performance enhancements for struct module | Bob Ippolito | 2006-05-23 | 3 | -0/+1431 |
| | |||||
* | patch #1493701: performance enhancements for struct module | Bob Ippolito | 2006-05-23 | 4 | -1295/+4 |
| | |||||
* | revert #1493701 | Bob Ippolito | 2006-05-23 | 5 | -416/+276 |
| | |||||
* | Remove duplicate item | Andrew M. Kuchling | 2006-05-23 | 1 | -3/+0 |
| | |||||
* | Patch #1493701: performance enhancements for struct module. | Bob Ippolito | 2006-05-23 | 5 | -276/+416 |
| | |||||
* | Bug #1334662 / patch #1335972: int(string, base) wrong answers. | Tim Peters | 2006-05-23 | 4 | -88/+262 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | needforspeed: use append+reverse for rsplit, use "bloom filters" to | Fredrik Lundh | 2006-05-23 | 1 | -43/+101 |
| | | | | | | | 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... ;-) | ||||
* | Update Misc/NEWS for gzip patch #1281707 | Bob Ippolito | 2006-05-23 | 1 | -2/+2 |
| | |||||
* | Update Misc/NEWS for gzip patch #1281707 | Bob Ippolito | 2006-05-23 | 1 | -0/+2 |
| | |||||
* | fix broken merge | Richard Jones | 2006-05-23 | 1 | -7/+2 |
| | |||||
* | Applied patch 1337051 by Neal Norwitz, saving 4 ints on frame objects. | Richard Jones | 2006-05-23 | 4 | -55/+54 |
| | |||||
* | An improved script for building the binary distribution on MacOSX. | Ronald Oussoren | 2006-05-23 | 9 | -0/+1246 |
| | |||||
* | Use 'speed' instead of 'performance', because I agree with the argument | Andrew M. Kuchling | 2006-05-23 | 1 | -2/+2 |
| | | | | | at http://zestyping.livejournal.com/193260.html that 'erformance' really means something more general. | ||||
* | Mention string improvements | Andrew M. Kuchling | 2006-05-23 | 1 | -1/+4 |
| | |||||
* | Add some items; mention the sprint | Andrew M. Kuchling | 2006-05-23 | 1 | -0/+18 |
| | |||||
* | Patch #1488098. | Ronald Oussoren | 2006-05-23 | 3 | -2/+125 |
| | | | | | | 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. | ||||
* | Disable linking extensions with -lpython2.5 for darwin. This should fix bug | Ronald Oussoren | 2006-05-23 | 1 | -0/+5 |
| | | | | #1487105. | ||||
* | PyErr_NewException now accepts a tuple of base classes as its | Georg Brandl | 2006-05-23 | 3 | -4/+15 |
| | | | | "base" parameter. | ||||
* | Avoid creating a mess when installing a framework for the second time. | Ronald Oussoren | 2006-05-23 | 1 | -2/+7 |
| | |||||
* | Merge from rjones-funccall branch. | Richard Jones | 2006-05-23 | 4 | -62/+104 |
| | | | | | | 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. | ||||
* | needforspeed: fixed unicode "in" operator to use same implementation | Fredrik Lundh | 2006-05-23 | 1 | -27/+29 |
| | | | | approach as find/index | ||||
* | needforspeed: check first *and* last character before doing a full memcmp | Fredrik Lundh | 2006-05-23 | 1 | -4/+6 |
| | |||||
* | unicode_repeat(): Change type of local to Py_ssize_t, | Tim Peters | 2006-05-23 | 1 | -1/+1 |
| | | | | since that's what it should be. | ||||
* | PyUnicode_Join(): Recent code changes introduced new | Tim Peters | 2006-05-22 | 1 | -9/+8 |
| | | | | | | | | 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). | ||||
* | needforspeed: use memcpy for "long" strings; use a better algorithm | Fredrik Lundh | 2006-05-22 | 2 | -8/+20 |
| | | | | for long repeats. | ||||
* | needforspeed: speed up unicode repeat, unicode string copy | Fredrik Lundh | 2006-05-22 | 2 | -8/+14 |
| | |||||
* | Apply revised patch for GzipFile.readline performance #1281707 | Bob Ippolito | 2006-05-22 | 1 | -16/+21 |
| | |||||
* | docstring tweaks: count counts non-overlapping substrings, not | Fredrik Lundh | 2006-05-22 | 2 | -5/+5 |
| | | | | total number of occurences | ||||
* | Revert gzip readline performance patch #1281707 until a more generic ↵ | Bob Ippolito | 2006-05-22 | 1 | -28/+20 |
| | | | | performance improvement can be found | ||||
* | GzipFile.readline performance improvement (~30-40%), patch #1281707 | Bob Ippolito | 2006-05-22 | 1 | -20/+28 |
| | |||||
* | Define SIZEOF_{DOUBLE,FLOAT} on Windows. Else | Tim Peters | 2006-05-22 | 1 | -1/+3 |
| | | | | | Michael Hudson's nice gimmicks for IEEE special values (infinities, NaNs) don't work. | ||||
* | Patch #1492356: Port to Windows CE (patch set 1). | Martin v. Löwis | 2006-05-22 | 10 | -116/+176 |
| | |||||
* | Patch 1490384: New Icons for the PC build. | Martin v. Löwis | 2006-05-22 | 4 | -0/+0 |
| | |||||
* | Apply patch #1492255 from Mike Foord. | George Yoshida | 2006-05-21 | 1 | -3/+3 |
| |