~bigbes/tarantool-protobuf: add2f224

wire: document why encode_varint's fast path stays 1-byte only

Adds a comment explaining the failed experiment with 2/3/4-byte fast
paths: extending the function past the LuaJIT inline budget makes
parent traces stop inlining it, costing ~30% on 1-byte-dominant
workloads (and the bench payload is 1-byte-dominant since most
proto field tags, enum ordinals, and short-string length prefixes
fit in 7 bits). Future maintainers should resist the temptation.

No code change beyond the comment.

Eugene Blikh <bigbes@gmail.com> — 2026-05-15 11:16:50 UTC

Commit add2f224a35dd8b9ce38995cfe76f7715e78d3cdview raw patch

Parent(s): a33dbecb

1 changed file(s)

FileStatus+
runtime/pb/wire.lua M +5