Page MenuHomeFreeBSD

stand: liblua: drop default buffer size to 128
ClosedPublic

Authored by kevans on Nov 22 2019, 4:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 9, 5:34 PM
Unknown Object (File)
Mon, Mar 9, 10:47 AM
Unknown Object (File)
Sat, Mar 7, 1:48 PM
Unknown Object (File)
Sat, Mar 7, 3:23 AM
Unknown Object (File)
Fri, Mar 6, 3:48 AM
Unknown Object (File)
Tue, Feb 24, 2:43 AM
Unknown Object (File)
Feb 7 2026, 11:05 PM
Unknown Object (File)
Feb 7 2026, 8:27 PM
Subscribers
None

Details

Summary

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 -- we simply stop allocating 8K buffers on the stack when luaL_Buffer is used.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable