mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
code for string cache generalized for "associative sets" (compiler
will optimize away or inline the extra loops)
This commit is contained in:
parent
0f1f51be4b
commit
9fae7b6d3f
4 changed files with 36 additions and 23 deletions
6
ltests.h
6
ltests.h
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: ltests.h,v 2.47 2014/12/26 14:44:44 roberto Exp roberto $
|
||||
** $Id: ltests.h,v 2.48 2015/06/18 14:27:44 roberto Exp roberto $
|
||||
** Internal Header for Debugging of the Lua Implementation
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -118,5 +118,9 @@ LUA_API void *debug_realloc (void *ud, void *block,
|
|||
#undef LUAI_USER_ALIGNMENT_T
|
||||
#define LUAI_USER_ALIGNMENT_T union { char b[sizeof(void*) * 8]; }
|
||||
|
||||
|
||||
#define STRCACHE_N 23
|
||||
#define STRCACHE_M 5
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue