summaryrefslogtreecommitdiff
path: root/Include/stringobject.h
AgeCommit message (Collapse)AuthorLines
1997-01-18Two speedup hacks. Caching the hash saves recalculation of a string'sGuido van Rossum-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!).
1997-01-06added PyString_GET_SIZE macroBarry Warsaw-1/+2
for both PyString_GET_SIZE and PyString_AS_STRING, cast first argument to a PyStringObject*
1996-12-10Add const to error and newstring functionsGuido van Rossum-2/+2
1996-10-25New permission notice, includes CNRI.Guido van Rossum-12/+19
1996-07-30Turn on CACHE_HASH, for 2% speedier dict lookupsGuido van Rossum-0/+3
1995-02-27make the type a parameter of the DL_IMPORT macro, for Borland CGuido van Rossum-1/+1
1995-01-17new names for lots of new functionsGuido van Rossum-3/+1
1995-01-12The great renaming, phase two: all header files have been updated toGuido van Rossum-14/+14
use the new names exclusively, and the linker will see the new names. Files that import "Python.h" also only see the new names. Files that import "allobjects.h" will continue to be able to use the old names, due to the inclusion (in allobjects.h) of "rename2.h".
1995-01-04Added 1995 copyright.Guido van Rossum-3/+3
object.h: made sizes and refcnts signed ints. stringobject.h: make getstrsize() signed int. methodobject.h: add METH_VARARGS and METH_FREENAME flag bit definitions.
1994-08-18Changes for dynamic linking under NTGuido van Rossum-1/+1
1994-08-01Merge alpha100 branch back to main trunkGuido van Rossum-1/+2
1993-10-22Several optimizations and speed improvements.Sjoerd Mullender-0/+3
cstubs: Use Matrix type instead of float[4][4].
1993-07-28* Added support for X11 modules.Guido van Rossum-0/+11
* Makefile: change location of FORMS library. * posixmodule.c: turn #if 0 into #ifdef MSDOS (stuff in unistd.h or not) * Almost all .h files: added CPP magic to avoid duplicate inclusions and to support inclusion from C++.
1993-03-16* Changed many files to use mkvalue() instead of newtupleobject().Guido van Rossum-2/+3
* Fixcprt.py: added [-y file] option, do only files younger than file. * modsupport.[ch]: added vmkvalue(). * intobject.c: use mkvalue(). * stringobject.c: added "formatstring"; renamed string* to string_*; ceval.c: call formatstring for string % value. * longobject.c: close memory leak in divmod. * parsetok.c: set result node to NULL when returning an error.
1992-04-05Copyright for 1992 addedGuido van Rossum-1/+1
1991-02-19Added copyright notice.Guido van Rossum-0/+24
1990-10-14Initial revisionGuido van Rossum-0/+39