Page MenuHomeFreeBSD

stand: liblua: drop default buffer size to 128
AcceptedPublic

Authored by kevans on Fri, Nov 22, 4:22 PM.

Details

Reviewers
imp
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
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 27716

Event Timeline

kevans created this revision.Fri, Nov 22, 4:22 PM
imp accepted this revision.Fri, Nov 22, 11:37 PM
This revision is now accepted and ready to land.Fri, Nov 22, 11:37 PM