Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Patch #923098: Share interned strings in marshal. | Martin v. Löwis | 2004-06-27 | 2 | -24/+83 |
| | |||||
* | Patch #966493: Cleanup generator/eval_frame exposure. | Martin v. Löwis | 2004-06-27 | 1 | -14/+6 |
| | |||||
* | Get ceval.c to compile again by moving declarations before other statments. | Raymond Hettinger | 2004-06-26 | 1 | -1/+2 |
| | |||||
* | Massive performance improvement for C extension and builtin tracing code | Nicholas Bastin | 2004-06-25 | 1 | -51/+27 |
| | |||||
* | Move NOP to end of code transformation. | Raymond Hettinger | 2004-06-24 | 1 | -3/+7 |
| | |||||
* | Less ugly #ifdefs for C profiling fix | Nicholas Bastin | 2004-06-22 | 1 | -12/+5 |
| | |||||
* | One forgotten C profiling #ifdef | Nicholas Bastin | 2004-06-22 | 1 | -1/+2 |
| | |||||
* | Making C profiling a configure option (at least temporarily) | Nicholas Bastin | 2004-06-22 | 1 | -0/+12 |
| | |||||
* | Install two code generation optimizations that depend on NOP. | Raymond Hettinger | 2004-06-21 | 2 | -3/+33 |
| | | | | Reduces the cost of "not" to almost zero. | ||||
* | Performance tweak: allow stack_pointer and oparg to be register variables. | Armin Rigo | 2004-06-17 | 1 | -7/+16 |
| | | | | SF patch #943898 | ||||
* | Remove compiler warning | Neal Norwitz | 2004-06-13 | 1 | -1/+1 |
| | |||||
* | Make private function static | Neal Norwitz | 2004-06-13 | 1 | -1/+1 |
| | |||||
* | Patch #774665: Make Python LC_NUMERIC agnostic. | Martin v. Löwis | 2004-06-08 | 3 | -5/+263 |
| | |||||
* | Patch #510695: Add TSC profiling for the VM. | Martin v. Löwis | 2004-06-08 | 3 | -2/+183 |
| | |||||
* | Fix a refcount bug in an obscure code corner. | Thomas Heller | 2004-06-07 | 1 | -0/+1 |
| | | | | Already backported. | ||||
* | SF bug #963956: Bad error mesage when subclassing a module | Raymond Hettinger | 2004-06-05 | 1 | -0/+9 |
| | | | | | | Add a more informative message for the common user mistake of subclassing from a module name rather than another class (i.e. random instead of random.random). | ||||
* | Patch #957398: Add public API for Generator Object/Type. | Martin v. Löwis | 2004-06-01 | 1 | -138/+8 |
| | |||||
* | starting to add comments to explain what's here | Fred Drake | 2004-05-28 | 1 | -0/+11 |
| | |||||
* | SF patch #872326: Generator expression implementation | Raymond Hettinger | 2004-05-19 | 3 | -308/+680 |
| | | | | | | | | | | | | | | (Code contributed by Jiwon Seo.) The documentation portion of the patch is being re-worked and will be checked-in soon. Likewise, PEP 289 will be updated to reflect Guido's rationale for the design decisions on binding behavior (as described in in his patch comments and in discussions on python-dev). The test file, test_genexps.py, is written in doctest format and is meant to exercise all aspects of the the patch. Further additions are welcome from everyone. Please stress test this new feature as much as possible before the alpha release. | ||||
* | forward-port 1.17.12.1 | Anthony Baxter | 2004-05-13 | 1 | -1/+1 |
| | |||||
* | Some (but not all) of the why code bitfield tests ran faster as | Raymond Hettinger | 2004-04-11 | 1 | -3/+4 |
| | | | | separate equality tests. Now, all are set to their best timing. | ||||
* | Revert 2.393, elimination of pre-decrementing, which | Raymond Hettinger | 2004-04-10 | 1 | -17/+13 |
| | | | | did not stand-up to additional timings. | ||||
* | Use continue instead of break whereever possible. | Raymond Hettinger | 2004-04-07 | 1 | -2/+8 |
| | |||||
* | * Improve readability and remove data dependencies by converting | Raymond Hettinger | 2004-04-07 | 1 | -14/+18 |
| | | | | | | | | pre-increment forms to post-increment forms. Post-incrementing also eliminates the need for negative array indices for oparg fetches. * In exception handling code, check for class based exceptions before the older string based exceptions. | ||||
* | Small code improvements for readability, code size, and/or speed. | Raymond Hettinger | 2004-04-07 | 1 | -58/+54 |
| | | | | | | | | | | | | | | | | | | | | | | | BINARY_SUBSCR: * invert test for normal case fall through * eliminate err handling code by jumping to slow_case LOAD_LOCALS: * invert test for normal case fall through * continue instead of break for the non-error case STORE_NAME and DELETE_NAME: * invert test for normal case fall through LOAD_NAME: * continue instead of break for the non-error case DELETE_FAST: * invert test for normal case fall through LOAD_DEREF: * invert test for normal case fall through * continue instead of break for the non-error case | ||||
* | Simplify previous checkin (bitfields for WHY codes). | Raymond Hettinger | 2004-04-06 | 1 | -12/+14 |
| | | | | Restores the self-documenting enum declaration. | ||||
* | Coded WHY flags as bitfields (taking inspiration from tp_flags). | Raymond Hettinger | 2004-04-06 | 1 | -20/+16 |
| | | | | | This allows multiple flags to be tested in a single compare which eliminates unnecessary compares and saves a few bytes. | ||||
* | Since the fast_yield branch target was introduced, it appears that most | Tim Peters | 2004-04-05 | 1 | -41/+41 |
| | | | | | | | tests of "why" against WHY_YIELD became useless. This patch removes them, but assert()s that why != WHY_YIELD everywhere such a test was removed. The test suite ran fine under a debug build (i.e., the asserts never triggered). | ||||
* | Bump the magic number to avoid sharing bytecode between 2.3 and 2.4. | Jeremy Hylton | 2004-04-01 | 1 | -32/+14 |
| | | | | | Revise the long comment that explained details of the magic number in gory detail. | ||||
* | OS/2 VACPP build updates/fixes | Andrew MacIntyre | 2004-03-29 | 1 | -1/+1 |
| | |||||
* | Marshal clean-up (SF patch #873224) | Armin Rigo | 2004-03-26 | 2 | -70/+61 |
| | |||||
* | A few more PyThreadState_Get to PyThreadState_GET conversions | Nicholas Bastin | 2004-03-25 | 1 | -1/+1 |
| | |||||
* | Changed random calls to PyThreadState_Get() to use the macro | Nicholas Bastin | 2004-03-24 | 7 | -25/+25 |
| | |||||
* | Enable the profiling of C functions (builtins and extensions) | Nicholas Bastin | 2004-03-24 | 2 | -6/+52 |
| | |||||
* | Decref all if ensure_fromlist fails. Fixes #876533. | Martin v. Löwis | 2004-03-23 | 1 | -2/+3 |
| | | | | Backported to 2.3. | ||||
* | Lost reference. | Armin Rigo | 2004-03-22 | 1 | -6/+8 |
| | |||||
* | Fix SF bug #765624. | Armin Rigo | 2004-03-22 | 1 | -5/+12 |
| | |||||
* | Fix for line events in the case: | Armin Rigo | 2004-03-22 | 1 | -1/+31 |
| | | | | | | | | def f(a): if a: print 5 else: pass | ||||
* | Moved tracebackobject to traceback.h, Closes SF Bug #497067 | Nicholas Bastin | 2004-03-21 | 1 | -23/+16 |
| | |||||
* | Improve byte coding for multiple assignments. | Raymond Hettinger | 2004-03-21 | 1 | -3/+74 |
| | | | | Gives 30% speedup on "a,b=1,2" and 25% on "a,b,c=1,2,3". | ||||
* | Cancelled checkin, sorry. | Armin Rigo | 2004-03-20 | 1 | -10/+6 |
| | |||||
* | A 2% speed improvement with gcc on low-endian machines. My guess is that this | Armin Rigo | 2004-03-20 | 1 | -6/+10 |
| | | | | | new pattern for NEXTARG() is detected and optimized as a single (*short) loading. | ||||
* | LIST_APPEND is predicably followed by JUMP_ABSOLUTE. | Raymond Hettinger | 2004-03-12 | 1 | -1/+5 |
| | | | | Reduces loop overhead by an additional 10%. | ||||
* | Move the code for BREAK and CONTINUE_LOOP to be near FOR_ITER. | Raymond Hettinger | 2004-03-12 | 1 | -9/+9 |
| | | | | | Makes it more likely that all loop operations are in the cache at the same time. | ||||
* | Speedup for-loops by inlining PyIter_Next(). Saves duplicate tests | Raymond Hettinger | 2004-03-12 | 1 | -8/+10 |
| | | | | | and a function call resulting in a 15% reduction of total loop overhead (as measured by timeit.Timer('pass')). | ||||
* | Refactor and optimize code for UNPACK_SEQUENCE. | Raymond Hettinger | 2004-03-08 | 1 | -27/+13 |
| | | | | | | | | | | * Defer error handling for wrong number of arguments to the unpack_iterable() function. Cuts the code size almost in half. * Replace function calls to PyList_Size() and PyTuple_Size() with their smaller and faster macro counterparts. * Move the constant structure references outside of the inner loops. | ||||
* | SF patch #910929: Optimize list comprehensions | Raymond Hettinger | 2004-03-07 | 2 | -3/+10 |
| | | | | | Add a new opcode, LIST_APPEND, and apply it to the code generation for list comprehensions. Reduces the per-loop overhead by about a third. | ||||
* | SF Patch #902444: Use process scope thread on FreeBSD. System scope | Hye-Shik Chang | 2004-03-04 | 1 | -1/+1 |
| | | | | | is too expensive on FreeBSD's KSE threading infrastructure and even test_threadedimport fails on default setting. | ||||
* | typo | Skip Montanaro | 2004-03-03 | 1 | -1/+1 |
| | |||||
* | Add pystack definition to Misc/gdbinit with some explanation of its behavior | Skip Montanaro | 2004-03-01 | 1 | -0/+4 |
| | | | | | and add flag comments to ceval.c and main.c alerting people to the coupling between pystack and the layout of those files. |