aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-09-06 10:58:55 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-09-06 10:58:55 -0300
commit69b77b6fde32cdf5dcaeeb92996bf6c4697e0b4f (patch)
treee55a5cee9fb21522015f710712577c23243e2be2 /luaconf.h
parent997f11f54322883c3181225f29d101a597f31730 (diff)
downloadlua-69b77b6fde32cdf5dcaeeb92996bf6c4697e0b4f.tar.gz
lua-69b77b6fde32cdf5dcaeeb92996bf6c4697e0b4f.tar.bz2
lua-69b77b6fde32cdf5dcaeeb92996bf6c4697e0b4f.zip
Changed the growth rate of string buffers
The growth rate of string buffers was reduced from 2 to 1.5 (3/2). As string buffers start larger (256~1024 bytes), they don't need to grow that fast. Moreover, a lower rate allows multiplicative growth up to larger sizes (3/2 of the maximum). (After that, the growth becomes linear, which is mostly useless.)
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/luaconf.h b/luaconf.h
index fcc0018b..e4650fbc 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -747,14 +747,15 @@
747 747
748/* 748/*
749@@ LUA_IDSIZE gives the maximum size for the description of the source 749@@ LUA_IDSIZE gives the maximum size for the description of the source
750@@ of a function in debug information. 750** of a function in debug information.
751** CHANGE it if you want a different size. 751** CHANGE it if you want a different size.
752*/ 752*/
753#define LUA_IDSIZE 60 753#define LUA_IDSIZE 60
754 754
755 755
756/* 756/*
757@@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system. 757@@ LUAL_BUFFERSIZE is the initial buffer size used by the lauxlib
758** buffer system.
758*/ 759*/
759#define LUAL_BUFFERSIZE ((int)(16 * sizeof(void*) * sizeof(lua_Number))) 760#define LUAL_BUFFERSIZE ((int)(16 * sizeof(void*) * sizeof(lua_Number)))
760 761