| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | needforspeed: more stringlib refactoring | Fredrik Lundh | 2006-05-27 | 1 | -92/+60 | |
| | | ||||||
| * | Patch 1494554: Update numeric properties to Unicode 4.1. | Martin v. Löwis | 2006-05-27 | 1 | -0/+1 | |
| | | ||||||
| * | Fix Coverity warnings. | Neal Norwitz | 2006-05-27 | 1 | -1/+1 | |
| | | | | | | - Check the correct variable (str_obj, not str) for NULL - sep_len was already verified it wasn't 0 | |||||
| * | 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 | 1 | -5/+4 | |
| | | ||||||
| * | 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 | 1 | -47/+35 | |
| | | | | | find helpers; updated unicodeobject to use stringlib_count | |||||
| * | needspeed: rpartition documentation, tests, and a bug fixes. | Fredrik Lundh | 2006-05-26 | 1 | -2/+2 | |
| | | | | | feel free to add more tests and improve the documentation. | |||||
| * | needforspeed: added rpartition implementation | Fredrik Lundh | 2006-05-26 | 1 | -0/+50 | |
| | | ||||||
| * | needforspeed: stringlib refactoring (in progress) | Fredrik Lundh | 2006-05-26 | 1 | -43/+16 | |
| | | ||||||
| * | needforspeed: stringlib refactoring (in progress) | Fredrik Lundh | 2006-05-26 | 1 | -87/+2 | |
| | | ||||||
| * | use Py_LOCAL also for string and unicode objects | Fredrik Lundh | 2006-05-26 | 1 | -22/+10 | |
| | | ||||||
| * | needforspeed: use Py_ssize_t for the fastsearch counter and skip | Fredrik Lundh | 2006-05-26 | 1 | -1/+1 | |
| | | | | | | 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 | 1 | -7/+2 | |
| | | | | | | ~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. | |||||
| * | needforspeed: partition implementation, part two. | Fredrik Lundh | 2006-05-26 | 1 | -63/+96 | |
| | | | | | feel free to improve the documentation and the docstrings. | |||||
| * | 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: check for overflow in replace (from Andrew Dalke) | Fredrik Lundh | 2006-05-25 | 1 | -4/+25 | |
| | | ||||||
| * | 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. | |||||
| * | 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 | |
| | | ||||||
| * | return 0 on misses, not -1. | Fredrik Lundh | 2006-05-23 | 1 | -1/+1 | |
| | | ||||||
| * | 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... ;-) | |||||
| * | needforspeed: fixed unicode "in" operator to use same implementation | Fredrik Lundh | 2006-05-23 | 1 | -27/+29 | |
| | | | | | approach as find/index | |||||
| * | 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 | 1 | -4/+11 | |
| | | | | | for long repeats. | |||||
| * | needforspeed: speed up unicode repeat, unicode string copy | Fredrik Lundh | 2006-05-22 | 1 | -4/+7 | |
| | | ||||||
| * | docstring tweaks: count counts non-overlapping substrings, not | Fredrik Lundh | 2006-05-22 | 1 | -2/+2 | |
| | | | | | total number of occurences | |||||
| * | Patch #1488312, Fix memory alignment problem on SPARC in unicode. Will backport | Neal Norwitz | 2006-05-15 | 1 | -1/+1 | |
| | | ||||||
| * | Use %zd instead of %i as format character (in call to PyErr_Format) for | Thomas Wouters | 2006-04-16 | 1 | -1/+1 | |
| | | | | | Py_ssize_t argument. | |||||
| * | Make Py_BuildValue, PyObject_CallFunction and | Martin v. Löwis | 2006-04-14 | 1 | -0/+1 | |
| | | | | | PyObject_CallMethod aware of PY_SSIZE_T_CLEAN. | |||||
| * | Remove another INT_MAX limitation | Martin v. Löwis | 2006-04-13 | 1 | -2/+1 | |
| | | ||||||
| * | Change more ints to Py_ssize_t. | Martin v. Löwis | 2006-04-13 | 1 | -40/+39 | |
| | | ||||||
| * | Revert 34153: Py_UNICODE should not be signed. | Martin v. Löwis | 2006-04-13 | 1 | -8/+3 | |
| | | ||||||
| * | spread the extern "C" { } magic pixie dust around. Python itself builds now | Anthony Baxter | 2006-04-13 | 1 | -0/+10 | |
| | | | | | | using a C++ compiler. Still lots and lots of errors in the modules built by setup.py, and a bunch of warnings from g++ in the core. | |||||
| * | More low-hanging fruit. Still need to re-arrange some code (or find a better | Anthony Baxter | 2006-04-11 | 1 | -5/+6 | |
| | | | | | | solution) in the same way as listobject.c got changed. Hoping for a better solution. | |||||
| * | That one was a mistake. | Georg Brandl | 2006-03-30 | 1 | -1/+1 | |
| | | ||||||
| * | Remove unnecessary casts in type object initializers. | Georg Brandl | 2006-03-30 | 1 | -4/+4 | |
| | | ||||||
| * | - Reindent a confusingly indented piece of code (no intended code changes | Thomas Wouters | 2006-03-12 | 1 | -13/+16 | |
| | | | | | | | | | | there) - Add missing DECREFs of inner-scope 'temp' variable - Add various missing DECREFs by changing 'return NULL' into 'goto onError' - Avoid double DECREF when last _PyUnicode_Resize() fails Coverity found one of the missing DECREFs, but oddly enough not the others. | |||||
| * | Update Unicode database to Unicode 4.1. | Martin v. Löwis | 2006-03-09 | 1 | -1/+1 | |
| | | ||||||
| * | Checking in the code for PEP 357. | Guido van Rossum | 2006-03-07 | 1 | -2/+5 | |
| | | | | | | | This was mostly written by Travis Oliphant. I've inspected it all; Neal Norwitz and MvL have also looked at it (in an earlier incarnation). | |||||
| * | SF #1444030: Fix several potential defects found by Coverity. | Hye-Shik Chang | 2006-03-07 | 1 | -8/+14 | |
| | | | | | (reviewed by Neal Norwitz) | |||||
| * | Revert backwards-incompatible const changes. | Martin v. Löwis | 2006-02-27 | 1 | -1/+1 | |
| | | ||||||
| * | Use correct PyArg_Parse format char for Py_ssize_t in unicode.center(). | Thomas Wouters | 2006-02-16 | 1 | -1/+1 | |
| | | | | | | | | | | | | Fixes: >>> u"".center(10) Traceback (most recent call last): File "<stdin>", line 1, in <module> MemoryError on 64-bit systems. | |||||
| * | Use Py_ssize_t for counts and sizes. | Martin v. Löwis | 2006-02-16 | 1 | -1/+1 | |
| | | | | | Convert Py_ssize_t using PyInt_FromSsize_t | |||||
| * | Support %zd in PyErr_Format and PyString_FromFormat. | Martin v. Löwis | 2006-02-16 | 1 | -6/+3 | |
| | | ||||||
| * | doubletounicode(), longtounicode(): | Tim Peters | 2006-02-16 | 1 | -4/+8 | |
| | | | | | | | | | Py_SAFE_DOWNCAST can evaluate its first argument multiple times in a debug build. This caused two distinct assert- failures in test_unicode run under a debug build. Rewrote the code in trivial ways so that multiple evaluation of the first argument doesn't hurt. | |||||
| * | Remove two unused Py_ssize_t variables (merge glitches, looks like.) | Thomas Wouters | 2006-02-15 | 1 | -2/+0 | |
| | | ||||||
