summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Need for speed: Patch #921466 : sys.path_importer_cache is now used to cache ↵Georg Brandl2006-05-263-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 Heller2006-05-261-74/+127
|
* Use minimum calibration time rather than avergae to avoidSteve Holden2006-05-261-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 wasFredrik Lundh2006-05-261-67/+2
| | | | broken, someone would have noticed by now ;-)
* needforspeed: cleanupFredrik Lundh2006-05-261-4/+8
|
* needforspeed: stringlib refactoring (in progress)Fredrik Lundh2006-05-263-77/+71
|
* Write some docs.Thomas Heller2006-05-261-0/+40
|
* needforspeed: stringlib refactoring (in progress)Fredrik Lundh2006-05-264-179/+111
|
* Add missing svn:eol-style property to text files.Tim Peters2006-05-261-22/+22
|
* Whitespace normalization.Tim Peters2006-05-262-2/+1
|
* Repair Windows compiler warnings about mixingTim Peters2006-05-261-2/+2
| | | | signed and unsigned integral types in comparisons.
* For now, I gave up with automatic conversion of reST to Python-latex,Thomas Heller2006-05-262-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.cFredrik Lundh2006-05-261-26/+27
|
* Add -t option to allow easy test selection.Steve Holden2006-05-2617-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 structBob Ippolito2006-05-261-2/+2
|
* Test for more edge strip cases; leading and trailing separator gets removedAndrew Dalke2006-05-261-0/+2
| | | | even with strip(..., 0)
* Eeked out another 3% or so performance in split whitespace by cleaning up ↵Andrew Dalke2006-05-261-35/+38
| | | | the algorithm.
* Enable PY_USE_INT_WHEN_POSSIBLE in structBob Ippolito2006-05-261-3/+1
|
* Fix _struct typo that broke some 64-bit platformsBob Ippolito2006-05-261-1/+1
|
* Fix distutils so that libffi will cross-compile between darwin/x86 and ↵Bob Ippolito2006-05-262-5/+3
| | | | darwin/ppc
* Typo fixAndrew M. Kuchling2006-05-261-1/+1
|
* Add buffer support for struct, socketAndrew M. Kuchling2006-05-261-8/+40
|
* Explicitly close files. I'm trying to stop the frequent spurious test_tarfileTim Peters2006-05-261-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 theAndrew Dalke2006-05-261-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 Peters2006-05-261-10/+10
|
* fix #1229380 No struct.pack exception for some out of range integersBob Ippolito2006-05-262-13/+98
|
* Added more rstrip tests, including for prealloc'ed arraysAndrew Dalke2006-05-261-1/+54
|
* quick hack to fix busted binhex testBob Ippolito2006-05-261-1/+5
|
* Add str.partition()Andrew M. Kuchling2006-05-261-0/+21
|
* Whitespace normalization.Tim Peters2006-05-261-1/+1
|
* Test cases for off-by-one errors in string split with multicharacter pattern.Andrew Dalke2006-05-261-0/+2
|
* I like tests.Andrew Dalke2006-05-261-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 Peters2006-05-261-2/+1
|
* - Remove previous version of the binary distribution script for OSXRonald Oussoren2006-05-2615-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 Blais2006-05-266-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 Lundh2006-05-261-1/+1
| | | | but Trent's copy thinks that it's an anachronism...
* Typo fixesAndrew M. Kuchling2006-05-261-1/+1
|
* needforspeed: added PY_LOCAL_AGGRESSIVE macro to enable "aggressive"Fredrik Lundh2006-05-262-15/+31
| | | | LOCAL inlining; also added some missing whitespace
* Integrate installing a framework in the 'make install'Ronald Oussoren2006-05-263-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 directoriesRonald Oussoren2006-05-261-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 objectsFredrik Lundh2006-05-263-37/+18
|
* when generating python code prefer to generate valid python codeJack Diederich2006-05-261-3/+3
|
* needforspeed: added Py_LOCAL macro, based on the LOCAL macro usedFredrik Lundh2006-05-262-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 Brandl2006-05-261-0/+1
|
* Fix buglet in postinstall script, it would generate an invalid .cshrc file.Ronald Oussoren2006-05-261-1/+1
|
* Added split whitespace checks for characters other than space.Andrew Dalke2006-05-261-0/+1
|
* use Py_ssize_t in places that may need itJack Diederich2006-05-261-25/+25
|
* Added a few more test cases for whitespace split. These strings have ↵Andrew Dalke2006-05-261-0/+7
| | | | leading whitespace.
* needforspeed: use Py_ssize_t for the fastsearch counter and skipFredrik Lundh2006-05-262-2/+2
| | | | | length (thanks, neal!). and yes, I've verified that this doesn't slow things down ;-)
* needforspeed: use METH_O for argument handling, which made partition someFredrik Lundh2006-05-262-13/+4
| | | | | ~15% faster for the current tests (which is noticable faster than a corre- sponding find call). thanks to neal-who-never-sleeps for the tip.