summaryrefslogtreecommitdiff
path: root/lstring.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Lua 5.3.5 ported to gitv5.3.5Roberto Ierusalimschy2018-12-171-1/+1
| | | | | | | This is the first commit for the branch Lua 5.3. All source files were copied from the official distribution of 5.3.5 in the Lua site. The test files are the same of 5.3.4. The manual came from the previous RCS repository, revision 1.167.1.2.
* tiny code refactoring in 'luaS_hash'Roberto Ierusalimschy2015-11-231-4/+3
|
* new function 'luaS_hashlongstr'Roberto Ierusalimschy2015-11-031-1/+11
|
* detail (added assertion)Roberto Ierusalimschy2015-10-081-1/+2
|
* code for string cache generalized for "associative sets" (compilerRoberto Ierusalimschy2015-09-221-16/+22
| | | | will optimize away or inline the extra loops)
* macros 'getaddrstr' and 'getstr' unified (they do the same thing)Roberto Ierusalimschy2015-09-171-4/+4
|
* long strings are created directly in final position when possibleRoberto Ierusalimschy2015-09-081-7/+13
| | | | | (instead of using an auxiliar buffer to first create the string and then allocate the final string and copy result there)
* detail (i + 1 > exp is simply i >= exp)Roberto Ierusalimschy2015-06-181-2/+2
|
* 'strcache' elements as arrays of 1 element hints that cache canRoberto Ierusalimschy2015-06-011-9/+9
| | | | be n-way (instead of direct mapped)
* 'clearapihash' -> 'luaS_clearcache' and moved to 'lstring.c' (whichRoberto Ierusalimschy2015-03-251-1/+14
| | | | keeps all code related to this cache)
* new cache for interning stringsRoberto Ierusalimschy2015-03-041-3/+31
|
* size of short strings stored in a single byte, to reduce the sizeRoberto Ierusalimschy2015-01-161-12/+15
| | | | of struct 'TString'
* added include for 'lprefix.h', for stuff that must be added beforeRoberto Ierusalimschy2014-11-021-4/+6
| | | | any other header file
* 'iswhite' and related macros now can work directly on any objectRoberto Ierusalimschy2014-07-211-3/+3
| | | | (no need to convert to 'GCObject')
* type 'Udata' refers directly to structure inside the union (unionRoberto Ierusalimschy2014-07-181-5/+5
| | | | used only for aligning purposes now)
* type 'TString' refers directly to the structure inside the unionRoberto Ierusalimschy2014-07-181-22/+22
| | | | (union used only for size purposes)
* added check for conversion 'obj2gco' (and corrections for smallRoberto Ierusalimschy2014-07-181-3/+3
| | | | problems detected by this check)
* use appropriate macros to convert GCObject to specific typesRoberto Ierusalimschy2014-06-181-3/+7
|
* LUAI_FUNC is being used only in header filesRoberto Ierusalimschy2014-04-021-2/+2
|
* removed function 'luaS_eqstr' (not used anywhere)Roberto Ierusalimschy2014-03-191-10/+1
|
* userdata can have any Lua value as uservalueRoberto Ierusalimschy2014-02-191-3/+3
|
* check for shrinking string table done only at the end of a GC cycleRoberto Ierusalimschy2013-09-111-3/+1
|
* 'luaC_newobj' does not handle special cases; only special caseRoberto Ierusalimschy2013-09-111-3/+3
| | | | now is threads, which do not use 'luaC_newobj' anymore.
* back to open hashing for the string table (but with a differentRoberto Ierusalimschy2013-09-051-78/+43
| | | | | 'hnext' field, to strings are still collected like all other objects)
* tables and userdata all go to local list, tooRoberto Ierusalimschy2013-08-281-2/+2
|
* LOCALBLACK changed to LOCALMARK and used also to control whether objectRoberto Ierusalimschy2013-08-271-3/+3
| | | | | is in 'localgc' list + luaC_newobj by default puts object in 'localgc' list
* C functions and strings now go to the local list; first versionRoberto Ierusalimschy2013-08-231-2/+2
| | | | of the local collector
* some details over new implementation of string tableRoberto Ierusalimschy2013-08-221-16/+18
|
* change in string table: string table is now independent of GC lists; allRoberto Ierusalimschy2013-08-211-52/+88
| | | | strings live in 'normal' GC lists
* no more generational collection !!!Roberto Ierusalimschy2013-08-051-2/+1
|
* new constant 'MAX_SIZE', distinct from 'MAX_SIZET', for sizes visibleRoberto Ierusalimschy2013-06-191-3/+3
| | | | from Lua; these must fit in a lua_Integer
* detailRoberto Ierusalimschy2013-01-081-2/+2
|
* cast to avoid warning in some compilers (size_t x unsigned int)Roberto Ierusalimschy2012-10-021-2/+2
|
* definition for 'LUAI_MAXSHORTLEN' moved to luaconf.h (too important)Roberto Ierusalimschy2012-05-111-12/+1
|
* string hash may not use all bytes (but this is configurable now) +Roberto Ierusalimschy2012-03-281-5/+28
| | | | small other changes
* random seed used in the hash of all strings to avoid intentionalRoberto Ierusalimschy2012-02-011-6/+7
| | | | collisions
* first implementation of long stringsRoberto Ierusalimschy2012-01-251-19/+77
|
* field 'reserved' -> 'extra' (may be used for other purposes too)Roberto Ierusalimschy2012-01-231-2/+2
|
* more complete (and hopefuly more correct) handling of 'sizeof(char)'Roberto Ierusalimschy2011-05-031-3/+4
|
* corrected some places where an old object could end up in frontRoberto Ierusalimschy2010-05-101-1/+2
| | | | of a new one + minimal documentation about this problem
* 'luaS_new' changed from macro to functionRoberto Ierusalimschy2010-04-031-1/+6
|
* allocator function receives the tag of object being allocated in 'osize'Roberto Ierusalimschy2009-12-171-9/+7
| | | | when 'ptr' is NULL.
* better to keep GC state numbers sequential, to optimize switch inRoberto Ierusalimschy2009-12-111-2/+2
| | | | 'singlestep'
* new function 'luaC_runtilstate' to advance GC until a "valid" stateRoberto Ierusalimschy2009-12-111-3/+3
|
* hash table for strings is rehashed in placeRoberto Ierusalimschy2009-04-291-16/+18
|
* 'luaM_freearray' does not need array type as argumentRoberto Ierusalimschy2009-04-171-2/+2
|
* userdata with finalizers are kept in a separated listRoberto Ierusalimschy2008-02-191-9/+5
|
* detailRoberto Ierusalimschy2007-11-091-2/+3
|
* emergency garbage collector (core forces a GC when allocation fails)Roberto Ierusalimschy2006-07-111-5/+4
|
* small changes in castsRoberto Ierusalimschy2005-12-221-2/+2
|