SIGN IN SIGN UP

Protocol Buffers - Google's data interchange format

0 0 180 C++

Enable Arena Enabled Copy Constructor for RepeatedPtrField

Benchmarking has this as a saving of up to 20%:

name                              old cpu/op   new cpu/op   delta
BM_MergeFromMessage/1              830ns ±15%   712ns ±16%  -14.22%  (p=0.000 n=20+20)
BM_MergeFromMessage/10            9.03µs ±13%  7.42µs ±13%  -17.91%  (p=0.000 n=20+18)
BM_MergeFromMessage/100           93.3µs ±16%  76.5µs ± 6%  -18.01%  (p=0.000 n=20+17)
BM_MergeFromMessageWithArena/1     614ns ±16%   478ns ± 3%  -22.07%  (p=0.000 n=20+16)
BM_MergeFromMessageWithArena/10   6.05µs ±14%  4.93µs ±19%  -18.53%  (p=0.000 n=20+20)
BM_MergeFromMessageWithArena/100  59.7µs ±15%  49.3µs ±20%  -17.51%  (p=0.000 n=20+20)

PiperOrigin-RevId: 574274002
M
Martijn Vels committed
8908ea9aff5dfab6d1da12ea4e20ecb073cc75f2
Parent: 9831212
Committed by Copybara-Service <copybara-worker@google.com> on 10/17/2023, 9:59:06 PM