Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Working semaphore implementation by Sjoerd. | Guido van Rossum | 1997-01-17 | 1 | -3/+64 |
| | |||||
* | New MAGIC number (code objects have one more item when marshalled). | Guido van Rossum | 1997-01-17 | 1 | -1/+2 |
| | |||||
* | Use the stack size from the code object and the CO_MAXBLOCKS constant | Guido van Rossum | 1997-01-17 | 1 | -2/+10 |
| | | | | from compile.h. Remove all eval stack overflow checks. | ||||
* | Add co_stacksize field to codeobject structure, and stacksize argument | Guido van Rossum | 1997-01-17 | 1 | -62/+253 |
| | | | | | | | | | | | | to PyCode_New() argument list. Move MAXBLOCKS constant to conpile.h. Added accurate calculation of the actual stack size needed by the generated code. Also commented out all fprintf statements (except for a new one to diagnose stack underflow, and one in #ifdef'ed out code), and added some new TO DO suggestions (now that the stacksize is taken of the TO DO list). | ||||
* | Add co_stacksize field to codeobject structure, and stacksize argument | Guido van Rossum | 1997-01-17 | 1 | -1/+3 |
| | | | | | to PyCode_New() argument list. Also add CO_MAXBLOCKS constant indicating the maximum static nesting supported by the compiler. | ||||
* | Of course, when the type of the argument to dis() is unsupported, it | Guido van Rossum | 1997-01-17 | 1 | -1/+1 |
| | | | | should raise TypeError, not ValueError... | ||||
* | More user friedly interface: | Guido van Rossum | 1997-01-17 | 1 | -10/+25 |
| | | | | | | | | | | | dis() still disassembles the last frame of the lats stack trace. dis(x) disassembles x, which may be a code object, function, or method. disassemble(co, [lasti]) disassembles a code object; the lasti argument is now optional. disco(...) is an alias for disassemble(...), for backward compatibility. | ||||
* | Added Sjoerd's submitted 'ratecv' method. Made corrections for new names. | Roger E. Masse | 1997-01-17 | 1 | -25/+140 |
| | | | | Reindented. | ||||
* | Make as sure as we can that the forked child does not return and | Guido van Rossum | 1997-01-17 | 1 | -12/+15 |
| | | | | continue the tests. | ||||
* | Renamed, but not tested. Guido will you try your test script on this? | Roger E. Masse | 1997-01-17 | 1 | -95/+94 |
| | |||||
* | Renamed. | Roger E. Masse | 1997-01-17 | 1 | -530/+584 |
| | |||||
* | Test output for the SGI cl C module test script. | Roger E. Masse | 1997-01-17 | 1 | -0/+1 |
| | |||||
* | Lame test script for the SGI cl C module. | Roger E. Masse | 1997-01-17 | 1 | -0/+78 |
| | |||||
* | (puremodule.c): New module which exports the Purify and Quantify C API | Barry Warsaw | 1997-01-17 | 3 | -4/+1169 |
| | | | | | | | | | | | to Python. Minimal documentation is included in comments at the top of the file, and in the Misc/PURIFY.README file. Note that this module must be statically linked since Pure doesn't provide shared stubs libraries. (Setup.in): Added commented template for pure module (syslogmodule.c): ins() function wasn't declared static. | ||||
* | README file for hints on Purify'ing or Quantify'ing the Python | Barry Warsaw | 1997-01-16 | 1 | -0/+72 |
| | | | | interpreter. It also mentions the soon to be checked in pure module. | ||||
* | Already renamed. Indented. | Roger E. Masse | 1997-01-16 | 1 | -471/+513 |
| | |||||
* | Output from test script for the bsddb C extension module. | Roger E. Masse | 1997-01-16 | 1 | -0/+1 |
| | |||||
* | Test script for the bsddb C extension module. | Roger E. Masse | 1997-01-16 | 1 | -0/+69 |
| | |||||
* | Rewrote lookmapping() according to suggestions by Jyrki Alakuijala. | Guido van Rossum | 1997-01-16 | 2 | -42/+142 |
| | |||||
* | Minor output message change | Roger E. Masse | 1997-01-16 | 2 | -2/+14 |
| | |||||
* | Merge several mods: | Guido van Rossum | 1997-01-16 | 1 | -2/+12 |
| | | | | | | | | - add opcodes BINARY_LSHIFT ... BINARY_OR - remove RESERVE_FAST - Skip M's suggestion for displaying which comparison operator is meant | ||||
* | Renamed. | Roger E. Masse | 1997-01-16 | 1 | -79/+88 |
| | |||||
* | As per GvR recomendations, remove the restriction that binhex only run on | Roger E. Masse | 1997-01-16 | 1 | -33/+43 |
| | | | | | | | big-endian machines. This is done by directing the struct module's pack and unpack methods to treat the data always in bin endian format. This has been tested on irix (big endian) and solaris x86 (little endian) but not yet on the mac. | ||||
* | set_key(): Use Py_CHARMASK macro to get the character from the array | Barry Warsaw | 1997-01-16 | 1 | -237/+43 |
| | | | | | | | | unsigned. This fixes the 8bit-char-in-key platform incompatibility. I also removed the old backwards compatibility code, and the commented lisp rotor code. I retained the lisp docstrings as comments preceding each function. | ||||
* | test output for the binascii C module test script. | Roger E. Masse | 1997-01-16 | 1 | -0/+1 |
| | |||||
* | test script for the binascii C module. | Roger E. Masse | 1997-01-16 | 2 | -0/+80 |
| | |||||
* | reformatted | Barry Warsaw | 1997-01-16 | 1 | -835/+977 |
| | | | | | | memory leak in Tkapp_(Create|Delete)FileHandler plugged. standard eyeballing | ||||
* | test is no longer needed | Barry Warsaw | 1997-01-16 | 2 | -32/+0 |
| | |||||
* | Opps. Added tests for the last two methods that were missing from | Roger E. Masse | 1997-01-15 | 1 | -1/+11 |
| | | | | the test program: 'grey2rgb' and 'rgb2grey' | ||||
* | Modified to use 'rgbimg' instead of the SGI specific 'imgfile' for reading | Roger E. Masse | 1997-01-15 | 1 | -24/+58 |
| | | | | | | | | the imagefiles and converting tham to a format suitable for imageop. Also added two more tests 'rgb2rgb8' and 'rgb82rgb' which remove the dependence on the file 'greytest.rgb'. Note: test_imgfile.py still uses 'greytest.rgb' | ||||
* | Irix 6 specific files -- thanks Sjoerd! | Guido van Rossum | 1997-01-15 | 58 | -0/+10664 |
| | |||||
* | "ported" Guido's embedding demo to the mac, and wrote some minimal | Jack Jansen | 1997-01-15 | 5 | -1/+278 |
| | | | | notes on embedding on the mac. | ||||
* | Added PyMac_Initialize() routine, to be used by embedding programs (in | Jack Jansen | 1997-01-15 | 5 | -516/+532 |
| | | | | stead of standard Py_Initialize(), which it calls). | ||||
* | Describe new ("unsigned") behavior of hex() and oct(). | Guido van Rossum | 1997-01-14 | 2 | -4/+24 |
| | |||||
* | Removed _xdr module | Barry Warsaw | 1997-01-14 | 1 | -1/+0 |
| | |||||
* | test(): close the pipe, just to shut up Purify. | Barry Warsaw | 1997-01-14 | 1 | -0/+1 |
| | |||||
* | Eliminated gcc -Wall complaints: | Barry Warsaw | 1997-01-14 | 1 | -26/+22 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Quieted gcc -Wall by removing unused local variables. - Added some choice parentheses around assignments in conditional tests. - Removed an unused (and seemingly unreachable) err label in load_short_binstring(). - in Unpickler_load(), removed \. in string format. - init_stuff() was declared to return an int, but had these problems: - it was returning NULL instead of 0 or 1 in some cases - it was falling of the end of the routine without returning anything - the call of init_stuff() in initcPickle() was never checking the return value anyway. I changed all this by returning 1 in the case of errors, 0 when no error occurred. Then in initcPickle(), if init_stuff() returns non-zero, I call Py_FatalError(). Suppressing my urge to reformat according to Python coding standards! :-) | ||||
* | Quieted gcc -Wall by removing unused local variables. | Barry Warsaw | 1997-01-14 | 1 | -5/+9 |
| | | | | | Suppressing my urge to reformat according to Python coding standards! :-) | ||||
* | Quieted gcc -Wall by removing unused local variables. | Barry Warsaw | 1997-01-14 | 1 | -2/+0 |
| |