Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Two more arguments to newcodeobject -- first lineno and lineno table. | Guido van Rossum | 1997-01-24 | 1 | -4/+7 |
| | |||||
* | New magin number (because of linenumber table). | Guido van Rossum | 1997-01-24 | 1 | -1/+1 |
| | |||||
* | Marshal the line number table of code objects. | Guido van Rossum | 1997-01-24 | 1 | -1/+9 |
| | |||||
* | Instead of emitting SET_LINENO instructions, generate a line number | Guido van Rossum | 1997-01-24 | 1 | -6/+102 |
| | | | | | | table which is incorporated in the code object. This way, the runtime overhead to keep track of line numbers is only incurred when an exception has to be reported. | ||||
* | Add co_firstlineno and co_lnotab, for the line number table generated | Guido van Rossum | 1997-01-24 | 1 | -1/+4 |
| | | | | by the compiler (in lieu of SET_LINENO instructions). | ||||
* | Initialize the ob_type field of PyAST_Type dynamically (in | Guido van Rossum | 1997-01-23 | 1 | -3/+7 |
| | | | | | | | | | initparser()) instead of statically (in the initializer). The static initialization, using the address of an object in a different DLL, is too much for the Microsoft VC++ compiler, and we want to be able to build this module as a separate DLL (it's nice to have but we don't want to increase the core DLL's size by 25K). This same trick has been applied to a number of modules, e.g. NumPy and _tkinter. | ||||
* | Forget keeping track of whether a dictionary contains all interned | Guido van Rossum | 1997-01-23 | 2 | -178/+110 |
| | | | | | string keys. Just doing a pointer compare before the string compare (in fact before the hash compare!) is just as fast. | ||||
* | Various notes added: | Guido van Rossum | 1997-01-22 | 1 | -16/+32 |
| | | | | | | | | | | - -mt option for Solaris threads with Solaris compiler - make clean when switching static link status for Linux - DEC alpha --with-dec-threads option - SunOS removed unnecessary warnings, mention -Xa for SunPro - Setup.local file - warn to try make clean after changing readline option - mention --with-threads as alias for --with-thread | ||||
* | The usual | Guido van Rossum | 1997-01-22 | 1 | -199/+228 |
| | |||||
* | A number of new symbols have appeared (courtesy autoconf 2.12?) | Guido van Rossum | 1997-01-22 | 1 | -0/+15 |
| | |||||
* | Add --with-dec-threads, for DEL Alpha, which requires -threads as the | Guido van Rossum | 1997-01-22 | 1 | -6/+19 |
| | | | | | | *final* linker argument. This implies --with-thread. Reimplemented --with-threads as an alias for --with-thread. | ||||
* | Added PyCObject_Import. | Guido van Rossum | 1997-01-22 | 3 | -18/+44 |
| | |||||
* | (libparser.tex): Fix typo found by Mark Hammond. | Fred Drake | 1997-01-22 | 2 | -2/+2 |
| | |||||
* | Bump version to 1.5a1. | Guido van Rossum | 1997-01-22 | 1 | -1/+1 |
| | |||||
* | Bump install version to 1.5. | Guido van Rossum | 1997-01-22 | 2 | -2/+2 |
| | |||||
* | Remove GetOwner, add GetBuildInfo... | Guido van Rossum | 1997-01-22 | 1 | -1/+1 |
| | |||||
* | Added getbuildinfo.c to the project. | Guido van Rossum | 1997-01-22 | 1 | -0/+12 |
| | |||||
* | Fix splitext() to go up to the last dot, not the first. | Guido van Rossum | 1997-01-22 | 1 | -3/+8 |
| | |||||
* | Avoid traceback in selection_own_get() when no Tk widget owns the | Guido van Rossum | 1997-01-21 | 2 | -6/+8 |
| | | | | selection; return None instead. | ||||
* | Darn. Updated version number for configure.in. | Guido van Rossum | 1997-01-21 | 1 | -1/+1 |
| | |||||
* | Let --with-threads be an alias for --with-thread. | Guido van Rossum | 1997-01-21 | 2 | -341/+589 |
| | |||||
* | Kill all local variables on function return. This closes a gigantic | Guido van Rossum | 1997-01-21 | 1 | -0/+12 |
| | | | | | leak of memory and file descriptors (thanks for Roj for reporting that!). Alas, the speed goes down by 5%. :-( | ||||
* | Don't use static buffers internally for formatstring(). | Guido van Rossum | 1997-01-21 | 1 | -25/+26 |
| | |||||
* | Only call sigcheck() at the ticker code if we don't have true signals. | Guido van Rossum | 1997-01-21 | 1 | -2/+6 |
| | | | | | | | This is safe now that both intrcheck() and signalmodule.c schedule a sigcheck() call via Py_AddPendingCall(). This gives another 7% speedup (never run such a test twice ;-). | ||||
* | Arrange for PyErr_CheckSignals() to be called via Py_AddPendingCall(). | Guido van Rossum | 1997-01-21 | 1 | -1/+3 |
| | | | | | This avoids having to call sigcheck() (the same routine by its old name :-) in the ticker code in ceval.c's main interpreter loop. | ||||
* | In the Unix version, arrange for sigcheck() to be called via | Guido van Rossum | 1997-01-21 | 1 | -0/+3 |
| | | | | | Py_AddPendingCall(). This avoids having to call sigcheck() in the ticker code in ceval.c's main interpreter loop. | ||||
* | Cleanup: | Guido van Rossum | 1997-01-21 | 1 | -222/+10 |
| | | | | | | | | | | - fix bug in Py_MakePendingCalls() with threading - fix return type of do_raise - remove build_slice (same as PySlice_New) - remove code inside #if 0 - remove code inside #ifdef CHECK_STACK - remove code inside #ifdef SUPPORT_OBSOLETE_ACCESS - comment about newimp.py should refer to ni.py | ||||
* | get build info from elsewhere | Guido van Rossum | 1997-01-20 | 1 | -9/+2 |
| | |||||
* | work build# into version string | Guido van Rossum | 1997-01-20 | 2 | -2/+39 |
| | |||||
* | Bugfix: remove ref to fast before it's defined. | Guido van Rossum | 1997-01-20 | 1 | -1/+1 |
| | |||||
* | Changes for frame object speedup: | Guido van Rossum | 1997-01-20 | 1 | -14/+2 |
| | | | | | | - get fastlocals differently - call newframeobject() with fewer arguments - toss getowner(), which was unused anyway | ||||
* | Changes that appear to give another 12% speedup. | Guido van Rossum | 1997-01-20 | 1 | -87/+55 |
| | | | | | | | | | | | | Rather than allocating a list object for the fast locals and another (extensible one) for the value stack and allocating the block stack dynamically, allocate the block stack with a fixed size (CO_MAXBLOCKS from compile.h), and stick the locals and value stack at the end of the object (this is now possible since the stack size is known beforehand). Get rid of the owner field and the nvalues argument -- it is available in the code object, like nlocals. This requires small changes in ceval.c only. | ||||
* | New lay-out of frame object, for fewer mallocs. | Guido van Rossum | 1997-01-20 | 1 | -9/+8 |
| | | | | See frameobject.c checkin message. | ||||
* | Remove unused variable. | Guido van Rossum | 1997-01-18 | 1 | -1/+0 |
| | |||||
* | Intern the string "__complex__". | Guido van Rossum | 1997-01-18 | 1 | -1/+1 |
| | |||||
* | Intern all names and varnames in newcodeobject(), plus those string | Guido van Rossum | 1997-01-18 | 1 | -7/+22 |
| | | | | | literals that look like identifiers. Also intern all strings used as names during the compilation. | ||||
* | Intern the various string objects created to speed up lookups. | Guido van Rossum | 1997-01-18 | 1 | -25/+25 |
| | |||||
* | Intern the strings "__builtins__". | Guido van Rossum | 1997-01-18 | 1 | -1/+1 |
| | |||||
* | Intern the strings created in getattr() and setattr(). | Guido van Rossum | 1997-01-18 | 1 | -2/+2 |
| | |||||
* | String interning. | Guido van Rossum | 1997-01-18 | 3 | -32/+285 |
| | |||||
* | Bump API version due to the various speedup hacks. | Guido van Rossum | 1997-01-18 | 1 | -2/+4 |
| | |||||
* | Two speedup hacks. Caching the hash saves recalculation of a string's | Guido van Rossum | 1997-01-18 | 1 | -3/+23 |
| | | | | | | | | | | hash value. Interning strings (which requires hash caching) tries to ensure that only one string object with a given value exists, so equality tests are one pointer comparison. Together, these can speed the interpreter up by as much as 20%. Each costs the size of a long or pointer per string object. In addition, interned strings live until the end of times. If you are concerned about memory footprint, simply comment the #define out here (and rebuild everything!). | ||||
* | Add "if (x != NULL) continue;" (or similar for err==0) before the | Guido van Rossum | 1997-01-18 | 1 | -18/+60 |
| | | | | | break to most cases, as suggested by Tim Peters. This gives another 8-10% speedup. | ||||
* | Version 1.1. Fix memory leak and expensive comparison with None. | Guido van Rossum | 1997-01-18 | 2 | -6/+44 |
| | |||||
* | Fix the _setmode() patch for MS_WINDOWS: include <fcntl.h> and use | Guido van Rossum | 1997-01-17 | 1 | -2/+6 |
| | | | | fileno(std*). | ||||
* | Remove obsolete PyFrame_ExtendStack. | Guido van Rossum | 1997-01-17 | 1 | -1/+0 |
| | |||||
* | Removed accessobject.c from file list. | Guido van Rossum | 1997-01-17 | 1 | -2109/+2076 |
| | |||||
* | Add stacksize argument to new.code(). | Guido van Rossum | 1997-01-17 | 2 | -6/+7 |
| | |||||
* | Comment out extend_stack() -- it is no longer needed. | Guido van Rossum | 1997-01-17 | 1 | -0/+2 |
| | |||||
* | Marshal the new stacksize item in code objects. | Guido van Rossum | 1997-01-17 | 1 | -1/+3 |
| |