Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | needforspeed: use Py_ssize_t for the fastsearch counter and skip | Fredrik Lundh | 2006-05-26 | 2 | -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 some | Fredrik Lundh | 2006-05-26 | 2 | -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. | |||||
* | Clarify docs for str.partition(). | Georg Brandl | 2006-05-26 | 1 | -4/+5 | |
| | ||||||
* | needforspeed: partition implementation, part two. | Fredrik Lundh | 2006-05-26 | 5 | -78/+143 | |
| | | | | feel free to improve the documentation and the docstrings. | |||||
* | Without this patch OSX users couldn't add new help sources because the code | Ronald Oussoren | 2006-05-26 | 1 | -0/+1 | |
| | | | | tried to update one item in a tuple. | |||||
* | Add Soc student | Andrew M. Kuchling | 2006-05-26 | 1 | -4/+5 | |
| | ||||||
* | needforspeed: partition for 8-bit strings. for some simple tests, | Fredrik Lundh | 2006-05-25 | 1 | -5/+66 | |
| | | | | | | | | this is on par with a corresponding find, and nearly twice as fast as split(sep, 1) full tests, a unicode version, and documentation will follow to- morrow. | |||||
* | Patch #1494387: SVN longobject.c compiler warnings | Tim Peters | 2006-05-25 | 1 | -1/+1 | |
| | | | | | | | | | The SIGCHECK macro defined here has always been bizarre, but it apparently causes compiler warnings on "Sun Studio 11". I believe the warnings are bogus, but it doesn't hurt to make the macro definition saner. Bugfix candidate (but I'm not going to bother). | |||||
* | Repair idiot typo, and complete the job of trying to | Tim Peters | 2006-05-25 | 1 | -4/+4 | |
| | | | | use the Windows time.clock() implementation on Win64. | |||||
* | Move over to use of METH_O and METH_NOARGS. | Brett Cannon | 2006-05-25 | 1 | -12/+24 | |
| | ||||||
* | Add missing files from x86 darwin ctypes patch | Bob Ippolito | 2006-05-25 | 3 | -0/+830 | |
| | ||||||
* | Whitespace normalization. | Tim Peters | 2006-05-25 | 1 | -2/+2 | |
| | ||||||
* | Some Win64 pre-release in 2000 didn't support | Tim Peters | 2006-05-25 | 2 | -4/+7 | |
| | | | | | | | | QueryPerformanceCounter(), but we believe Win64 does support it now. So use in time.clock(). It would be peachy if someone with a Win64 box tried this ;-) | |||||
* | Change test_values so that it compares the lowercasing of group names since ↵ | Brett Cannon | 2006-05-25 | 1 | -1/+4 | |
| | | | | | | getgrall() can return all lowercase names while getgrgid() returns proper casing. Discovered on Ubuntu 5.04 (custom). | |||||
* | Fix minor typo in prep_cif.c | Ronald Oussoren | 2006-05-25 | 1 | -1/+1 | |
| | ||||||
* | Add a x-ref to newer calling APIs. | Georg Brandl | 2006-05-25 | 1 | -0/+4 | |
| | ||||||
* | fix test_float regression and 64-bit size mismatch issue | Bob Ippolito | 2006-05-25 | 1 | -2/+16 | |
| | ||||||
* | squelch gcc4 darwin/x86 compiler warnings | Bob Ippolito | 2006-05-25 | 1 | -1/+1 | |
| | ||||||
* | Swap out bare malloc()/free() use for PyMem_MALLOC()/PyMem_FREE() . | Brett Cannon | 2006-05-25 | 1 | -2/+2 | |
| | ||||||
* | Someone seems to just have copy-pasted the docs of | Georg Brandl | 2006-05-25 | 1 | -4/+4 | |
| | | | | tp_compare to tp_richcompare ;) | |||||
* | enable darwin/x86 support for libffi and hence ctypes (doesn't yet support ↵ | Bob Ippolito | 2006-05-25 | 9 | -6/+120 | |
| | | | | --enable-universalsdk) | |||||
* | Use faster struct pack/unpack functions for the endian table that matches ↵ | Bob Ippolito | 2006-05-25 | 1 | -3/+27 | |
| | | | | the host's | |||||
* | Use LONG_MIN and LONG_MAX to check Python integer bounds instead of the ↵ | Bob Ippolito | 2006-05-25 | 1 | -10/+13 | |
| | | | | incorrect INT_MIN and INT_MAX | |||||
* | needforspeed: use insert+reverse instead of append | Fredrik Lundh | 2006-05-25 | 1 | -16/+8 | |
| | ||||||
* | Replace PyObject_CallFunction calls with only object args | Georg Brandl | 2006-05-25 | 8 | -20/+17 | |
| | | | | with PyObject_CallFunctionObjArgs, which is 30% faster. | |||||
* | fix a struct regression where long would be returned for short unsigned integers | Bob Ippolito | 2006-05-25 | 1 | -0/+6 | |
| | ||||||
* | Fix Cygwin compiler issue | Bob Ippolito | 2006-05-25 | 1 | -1/+5 | |
| | ||||||
* | * eliminate warning by reverting tmp_s type to 'const char*' | Jack Diederich | 2006-05-25 | 1 | -1/+1 | |
| | ||||||
* | Struct now unpacks to PY_LONG_LONG directly when possible, also include ↵ | Bob Ippolito | 2006-05-25 | 1 | -6/+88 | |
| | | | | #ifdef'ed out code that will return int instead of long when in bounds (not active since it's an API and doc change) | |||||
* | needforspeed: use fastsearch also for find/index and contains. the | Fredrik Lundh | 2006-05-25 | 1 | -1/+25 | |
| | | | | related tests are now about 10x faster. | |||||
* | Guard the _active.remove() call to avoid errors when there is no _active list. | Georg Brandl | 2006-05-25 | 1 | -2/+3 | |
| | ||||||
* | Faster path for PyLong_FromLongLong, using PyLong_FromLong algorithm | Bob Ippolito | 2006-05-25 | 1 | -10/+50 | |
| | ||||||
* | Added overflow test for adding two (very) large strings where the | Andrew Dalke | 2006-05-25 | 1 | -2/+7 | |
| | | | | | new string is over max Py_ssize_t. I have no way to test it on my box or any box I have access to. At least it doesn't break anything. | |||||
* | Comment typo | Andrew M. Kuchling | 2006-05-25 | 1 | -1/+1 | |
| | ||||||
* | Code had returned an ssize_t, upcast to long, then converted with ↵ | Andrew Dalke | 2006-05-25 | 1 | -1/+1 | |
| | | | | | | PyInt_FromLong. Now using PyInt_FromSsize_t. | |||||
* | needforspeed: use "fastsearch" for count. this results in a 3x speedup | Fredrik Lundh | 2006-05-25 | 1 | -1/+122 | |
| | | | | for the related stringbench tests. | |||||
* | Fixed problem identified by Georg. The special-case in-place code for replace | Andrew Dalke | 2006-05-25 | 1 | -2/+5 | |
| | | | | | | | | | | | made a copy of the string using PyString_FromStringAndSize(s, n) and modify the copied string in-place. However, 1 (and 0) character strings are shared from a cache. This cause "A".replace("A", "a") to change the cached version of "A" -- used by everyone. Now may the copy with NULL as the string and do the memcpy manually. I've added regression tests to check if this happens in the future. Perhaps there should be a PyString_Copy for this case? | |||||
* | A new table to help string->integer conversion was added yesterday to | Tim Peters | 2006-05-25 | 3 | -44/+16 | |
| | | | | | | both mystrtoul.c and longobject.c. Share the table instead. Also cut its size by 64 entries (they had been used for an inscrutable trick originally, but the code no longer tries to use that trick). | |||||
* | needforspeed: new replace implementation by Andrew Dalke. replace is | Fredrik Lundh | 2006-05-25 | 1 | -182/+605 | |
| | | | | | now about 3x faster on my machine, for the replace tests from string- bench. | |||||
* | needforspeed: check for overflow in replace (from Andrew Dalke) | Fredrik Lundh | 2006-05-25 | 3 | -15/+54 | |
| | ||||||
* | Fix incorrect documentation for the Py_IS_FINITE(X) macro. | Kristján Valur Jónsson | 2006-05-25 | 1 | -3/+3 | |
| | ||||||
* | Fix another typo | Andrew M. Kuchling | 2006-05-25 | 1 | -1/+1 | |
| | ||||||
* | Added tests for implementation error we came up with in the need for speed ↵ | Andrew Dalke | 2006-05-25 | 1 | -0/+19 | |
| | | | | sprint. | |||||
* | Fix comment typos | Andrew M. Kuchling | 2006-05-25 | 1 | -1/+1 | |
| | ||||||
* | needforspeed: _toupper/_tolower is a SUSv2 thing; fall back on ISO C | Fredrik Lundh | 2006-05-25 | 1 | -0/+9 | |
| | | | | versions if they're not defined. | |||||
* | Added a new macro, Py_IS_FINITE(X). On windows there is an intrinsic for ↵ | Kristján Valur Jónsson | 2006-05-25 | 3 | -5/+12 | |
| | | | | this and it is more efficient than to use !Py_IS_INFINITE(X) && !Py_IS_NAN(X). No change on other platforms | |||||
* | needforspeed: make new upper/lower work properly for single-character | Fredrik Lundh | 2006-05-25 | 1 | -4/+8 | |
| | | | | | strings too... (thanks to georg brandl for spotting the exact problem faster than anyone else) | |||||
* | needforspeed: speed up upper and lower for 8-bit string objects. | Fredrik Lundh | 2006-05-25 | 1 | -22/+20 | |
| | | | | | | | (the unicode versions of these are still 2x faster on windows, though...) based on work by Andrew Dalke, with tweaks by yours truly. | |||||
* | Add entry; and fix a typo | Andrew M. Kuchling | 2006-05-25 | 1 | -1/+7 | |
| | ||||||
* | Update graminit.c for the fix for #1488915, Multiple dots in relative import | Thomas Wouters | 2006-05-25 | 2 | -21/+25 | |
| | | | | statement raise SyntaxError, and add testcase. |