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)
Thu, May 2, 12:46 PM
Unknown Object (File)
Mon, Apr 29, 5:50 AM
Unknown Object (File)
Fri, Apr 26, 11:23 PM
Unknown Object (File)
Fri, Apr 26, 11:21 PM
Unknown Object (File)
Fri, Apr 26, 11:21 PM
Unknown Object (File)
Fri, Apr 26, 9:30 PM
Unknown Object (File)
Wed, Apr 17, 2:06 PM
Unknown Object (File)
Mar 12 2024, 10:01 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 27716