]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand: liblua: drop default buffer size to 128
authorKyle Evans <kevans@FreeBSD.org>
Thu, 19 Dec 2019 02:05:48 +0000 (02:05 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Thu, 19 Dec 2019 02:05:48 +0000 (02:05 +0000)
commit91670741521d3574f80b63df5074379c79eb22bb
treec7d812e519f8de782eeaa96162937bcffb2d6580
parentf87959a7123311fdaf4ff23f29a012a12fc896eb
stand: liblua: drop default buffer size to 128

Lua allocates LUAL_BUFFERSIZE buffers on the stack for various string
functions (string.format, string.gsub) -- this works out to be somewhat
significant and not necessary, based on how we use string operations.
Dropping it risks having to allocate per call to format/gsub, but this is
not the case for our usage. This simply stops allocating 8K buffers on the
stack when luaL_Buffer is used.
stand/liblua/luaconf.h