Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | Whitespace normalization. | Tim Peters | 2006-05-26 | 1 | -2/+1 |
| | |||||
* | - Remove previous version of the binary distribution script for OSX | Ronald Oussoren | 2006-05-26 | 15 | -663/+87 |
| | | | | | | | - Some small bugfixes for the IDLE.app wrapper - Tweaks to build-installer to ensure that python gets build in the right way, including sqlite3. - Updated readme files | ||||
* | Support for buffer protocol for socket and struct. | Martin Blais | 2006-05-26 | 6 | -203/+533 |
| | | | | | | | | | | * Added socket.recv_buf() and socket.recvfrom_buf() methods, that use the buffer protocol (send and sendto already did). * Added struct.pack_to(), that is the corresponding buffer compatible method to unpack_from(). * Fixed minor typos in arraymodule. | ||||
* | Py_LOCAL shouldn't be used for data; it works for some .NET 2003 compilers, | Fredrik Lundh | 2006-05-26 | 1 | -1/+1 |
| | | | | but Trent's copy thinks that it's an anachronism... | ||||
* | Typo fixes | Andrew M. Kuchling | 2006-05-26 | 1 | -1/+1 |
| | |||||
* | needforspeed: added PY_LOCAL_AGGRESSIVE macro to enable "aggressive" | Fredrik Lundh | 2006-05-26 | 2 | -15/+31 |
| | | | | LOCAL inlining; also added some missing whitespace | ||||
* | Integrate installing a framework in the 'make install' | Ronald Oussoren | 2006-05-26 | 3 | -5/+25 |
| | | | | | | | target. Until now users had to use 'make frameworkinstall' to install python when it is configured with '--enable-framework'. This tends to confuse users that don't hunt for readme files hidden in platform specific directories :-) | ||||
* | - Search the sqlite specific search directories | Ronald Oussoren | 2006-05-26 | 1 | -1/+45 |
| | | | | | | | | | | | | | after the normal include directories when looking for the version of sqlite to use. - On OSX: * Extract additional include and link directories from the CFLAGS and LDFLAGS, if the user has bothered to specify them we might as wel use them. * Add '-Wl,-search_paths_first' to the extra_link_args for readline and sqlite. This makes it possible to use a static library to override the system provided dynamic library. | ||||
* | use Py_LOCAL also for string and unicode objects | Fredrik Lundh | 2006-05-26 | 3 | -37/+18 |
| | |||||
* | when generating python code prefer to generate valid python code | Jack Diederich | 2006-05-26 | 1 | -3/+3 |
| | |||||
* | needforspeed: added Py_LOCAL macro, based on the LOCAL macro used | Fredrik Lundh | 2006-05-26 | 2 | -53/+70 |
| | | | | | for SRE and others. applied Py_LOCAL to relevant portion of ceval, which gives a 1-2% speedup on my machine. ymmv. | ||||
* | Add "partition" to UserString. | Georg Brandl | 2006-05-26 | 1 | -0/+1 |
| | |||||
* | Fix buglet in postinstall script, it would generate an invalid .cshrc file. | Ronald Oussoren | 2006-05-26 | 1 | -1/+1 |
| | |||||
* | Added split whitespace checks for characters other than space. | Andrew Dalke | 2006-05-26 | 1 | -0/+1 |
| | |||||
* | use Py_ssize_t in places that may need it | Jack Diederich | 2006-05-26 | 1 | -25/+25 |
| |