Move private utf8 helpers to anonymous namespace (#9791)
This trivial change hints compiler to inline the utf8 helpers and generate code with better performance. Tested on skylake, with clang-12 and gcc-9.3. Observed about 10% improvement from `google_message1_proto3_serialize` benchmark, with default ./configure parameters. Similar improvement on arm.pull/9800/head
parent
82d04fabd9
commit
bba2fca119
1 changed files with 2 additions and 1 deletions
Loading…
Reference in new issue