diff options
author | Kim Alvefur <zash@zash.se> | 2020-10-15 16:43:30 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-10-15 16:43:30 +0200 |
commit | 339ababe645bf4c226d0dd8e17249e1d896d7f01 (patch) | |
tree | 08dd2c3c7d7f8b96a9433b13639abdebc2534c92 /util/cache.lua | |
parent | 40c199ef2c94e0940538fc95a156966d97a9ec22 (diff) | |
download | prosody-339ababe645bf4c226d0dd8e17249e1d896d7f01.tar.gz prosody-339ababe645bf4c226d0dd8e17249e1d896d7f01.zip |
util.strbitop: Create buffer in the correct size (optimization)
This avoids dynamically growing the buffer as Lua does when luaL_addchar
is used, thus saving on realloc calls.
Diffstat (limited to 'util/cache.lua')
0 files changed, 0 insertions, 0 deletions