Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Simplify calling. | Georg Brandl | 2006-05-26 | 1 | -8/+2 | |
| | ||||||
* | Patch #1492218: document None being a constant. | Georg Brandl | 2006-05-26 | 1 | -7/+9 | |
| | ||||||
* | Replace Py_BuildValue("OO") by PyTuple_Pack. | Georg Brandl | 2006-05-26 | 3 | -5/+5 | |
| | ||||||
* | Comment typo | Andrew M. Kuchling | 2006-05-26 | 1 | -1/+1 | |
| | ||||||
* | needforspeed: stringlib refactoring: use stringlib/find for string find | Fredrik Lundh | 2006-05-26 | 3 | -30/+25 | |
| | ||||||
* | Write more docs. | Thomas Heller | 2006-05-26 | 1 | -17/+175 | |
| | ||||||
* | needforspeed: use a macro to fix slice indexes | Fredrik Lundh | 2006-05-26 | 1 | -52/+18 | |
| | ||||||
* | needforspeed: stringlib refactoring: use stringlib/find for unicode | Fredrik Lundh | 2006-05-26 | 1 | -14/+36 | |
| | | | | find | |||||
* | needforspeed: stringlib refactoring, continued. added count and | Fredrik Lundh | 2006-05-26 | 5 | -53/+132 | |
| | | | | find helpers; updated unicodeobject to use stringlib_count | |||||
* | added rpartition method to UserString class | Fredrik Lundh | 2006-05-26 | 1 | -1/+4 | |
| | ||||||
* | Exception isn't the root of all exception classes anymore. | Georg Brandl | 2006-05-26 | 1 | -2/+3 | |
| | ||||||
* | Change C spacing to 4 spaces by default to match PEP 7 for new C files. | Brett Cannon | 2006-05-26 | 1 | -1/+1 | |
| | ||||||
* | substring split now uses /F's fast string matching algorithm. | Andrew Dalke | 2006-05-26 | 1 | -40/+57 | |
| | | | | | | | | | | (If compiled without FAST search support, changed the pre-memcmp test to check the last character as well as the first. This gave a 25% speedup for my test case.) Rewrote the split algorithms so they stop when maxsplit gets to 0. Previously they did a string match first then checked if the maxsplit was reached. The new way prevents a needless string search. | |||||
* | Add rpartition() and path caching | Andrew M. Kuchling | 2006-05-26 | 1 | -3/+18 | |
| | ||||||
* | Revert tests to MAL's original round sizes to retiain comparability | Steve Holden | 2006-05-26 | 17 | -141/+52 | |
| | | | | | from long ago and far away. Stop calling this pybench 1.4 because it isn't. Remove the empty test, which was a bad idea. | |||||
* | needspeed: rpartition documentation, tests, and a bug fixes. | Fredrik Lundh | 2006-05-26 | 3 | -4/+28 | |
| | | | | feel free to add more tests and improve the documentation. | |||||
* | needforspeed: added rpartition implementation | Fredrik Lundh | 2006-05-26 | 5 | -2/+166 | |
| | ||||||
* | removed unnecessary include | Fredrik Lundh | 2006-05-26 | 1 | -2/+0 | |
| | ||||||
* | Need for speed: Patch #921466 : sys.path_importer_cache is now used to cache ↵ | Georg Brandl | 2006-05-26 | 3 | -4/+38 | |
| | | | | | | | | | | valid and invalid file paths for the built-in import machinery which leads to fewer open calls on startup. Also fix issue with PEP 302 style import hooks which lead to more open() calls than necessary. | |||||
* | Reordered, and wrote more docs. | Thomas Heller | 2006-05-26 | 1 | -74/+127 | |
| | ||||||
* | Use minimum calibration time rather than avergae to avoid | Steve Holden | 2006-05-26 | 1 | -12/+17 | |
| | | | | | | the illusion of negative run times. Halt with an error if run times go below 10 ms, indicating that results will be unreliable. | |||||
* | needforspeed: remove remaining USE_FAST macros; if fastsearch was | Fredrik Lundh | 2006-05-26 | 1 | -67/+2 | |
| | | | | broken, someone would have noticed by now ;-) | |||||
* | needforspeed: cleanup | Fredrik Lundh | 2006-05-26 | 1 | -4/+8 | |
| | ||||||
* | needforspeed: stringlib refactoring (in progress) | Fredrik Lundh | 2006-05-26 | 3 | -77/+71 | |
| | ||||||
* | Write some docs. | Thomas Heller | 2006-05-26 | 1 | -0/+40 | |
| | ||||||
* | needforspeed: stringlib refactoring (in progress) | Fredrik Lundh | 2006-05-26 | 4 | -179/+111 | |
| | ||||||
* | Add missing svn:eol-style property to text files. | Tim Peters | 2006-05-26 | 1 | -22/+22 | |
| | ||||||
* | Whitespace normalization. | Tim Peters | 2006-05-26 | 2 | -2/+1 | |
| | ||||||
* | Repair Windows compiler warnings about mixing | Tim Peters | 2006-05-26 | 1 | -2/+2 | |
| | | | | signed and unsigned integral types in comparisons. | |||||
* | For now, I gave up with automatic conversion of reST to Python-latex, | Thomas Heller | 2006-05-26 | 2 | -0/+207 | |
| | | | | | | so I'm writing this in latex now. Skeleton for the ctypes reference. | |||||
* | needforspeed: use Py_LOCAL on a few more locals in stringobject.c | Fredrik Lundh | 2006-05-26 | 1 | -26/+27 | |
| | ||||||
* | Add -t option to allow easy test selection. | Steve Holden | 2006-05-26 | 17 | -111/+255 | |
| | | | | | | Action verbose option correctly. Tweak operation counts. Add empty and new instances tests. Enable comparisons across different warp factors. Change version. | |||||
* | fix signed/unsigned mismatch in struct | Bob Ippolito | 2006-05-26 | 1 | -2/+2 | |
| | ||||||
* | Test for more edge strip cases; leading and trailing separator gets removed | Andrew Dalke | 2006-05-26 | 1 | -0/+2 | |
| | | | | even with strip(..., 0) | |||||
* | Eeked out another 3% or so performance in split whitespace by cleaning up ↵ | Andrew Dalke | 2006-05-26 | 1 | -35/+38 | |
| | | | | the algorithm. | |||||
* | Enable PY_USE_INT_WHEN_POSSIBLE in struct | Bob Ippolito | 2006-05-26 | 1 | -3/+1 | |
| | ||||||
* | Fix _struct typo that broke some 64-bit platforms | Bob Ippolito | 2006-05-26 | 1 | -1/+1 | |
| | ||||||
* | Fix distutils so that libffi will cross-compile between darwin/x86 and ↵ | Bob Ippolito | 2006-05-26 | 2 | -5/+3 | |
| | | | | darwin/ppc | |||||
* | Typo fix | Andrew M. Kuchling | 2006-05-26 | 1 | -1/+1 | |
| | ||||||
* | Add buffer support for struct, socket | Andrew M. Kuchling | 2006-05-26 | 1 | -8/+40 | |
| | ||||||
* | Explicitly close files. I'm trying to stop the frequent spurious test_tarfile | Tim Peters | 2006-05-26 | 1 | -9/+32 | |
| | | | | | | failures on Windows buildbots, but it's hard to know how since the regrtest failure output is useless here, and it never fails when a buildbot slave runs test_tarfile the second time in verbose mode. | |||||
* | Changes to string.split/rsplit on whitespace to preallocate space in the | Andrew Dalke | 2006-05-26 | 1 | -56/+75 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | results list. Originally it allocated 0 items and used the list growth during append. Now it preallocates 12 items so the first few appends don't need list reallocs. ("Here are some words ."*2).split(None, 1) is 7% faster ("Here are some words ."*2).split() is is 15% faster (Your milage may vary, see dealership for details.) File parsing like this for line in f: count += len(line.split()) is also about 15% faster. There is a slowdown of about 3% for large strings because of the additional overhead of checking if the append is to a preallocated region of the list or not. This will be the rare case. It could be improved with special case code but we decided it was not useful enough. There is a cost of 12*sizeof(PyObject *) bytes per list. For the normal case of file parsing this is not a problem because of the lists have a short lifetime. We have not come up with cases where this is a problem in real life. I chose 12 because human text averages about 11 words per line in books, one of my data sets averages 6.2 words with a final peak at 11 words per line, and I work with a tab delimited data set with 8 tabs per line (or 9 words per line). 12 encompasses all of these. Also changed the last rstrip code to append then reverse, rather than doing insert(0). The strip() and rstrip() times are now comparable. | |||||
* | Use open() to open files (was using file()). | Tim Peters | 2006-05-26 | 1 | -10/+10 | |
| | ||||||
* | fix #1229380 No struct.pack exception for some out of range integers | Bob Ippolito | 2006-05-26 | 2 | -13/+98 | |
| | ||||||
* | Added more rstrip tests, including for prealloc'ed arrays | Andrew Dalke | 2006-05-26 | 1 | -1/+54 | |
| | ||||||
* | quick hack to fix busted binhex test | Bob Ippolito | 2006-05-26 | 1 | -1/+5 | |
| | ||||||
* | Add str.partition() | Andrew M. Kuchling | 2006-05-26 | 1 | -0/+21 | |
| | ||||||
* | Whitespace normalization. | Tim Peters | 2006-05-26 | 1 | -1/+1 | |
| | ||||||
* | Test cases for off-by-one errors in string split with multicharacter pattern. | Andrew Dalke | 2006-05-26 | 1 | -0/+2 | |
| | ||||||
* | I like tests. | Andrew Dalke | 2006-05-26 | 1 | -0/+32 | |
| | | | | | | | The new split functions use a preallocated list. Added tests which exceed the preallocation size, to exercise list appends/resizes. Also added more edge case tests. |