message_arena: Use forward_list instead of list
I was looking at CPU profiles to understand shared library
microbenchmarks and I found this simple optimization.
This seems to have a small positive impact on microbenchmarks.
It also has a small positive impact on code size. sdk_example before was
22133864 bytes (1013912 bytes when stripped). Now it is 22024792 bytes
(1005496 when stripped).
Change-Id: Ic4399ea2ff9726e7b819de5f8e0fd93405a291c3
diff --git a/Android.bp b/Android.bp
index d068adb..43d54b8 100644
--- a/Android.bp
+++ b/Android.bp
@@ -8532,6 +8532,7 @@
name: "perfetto_src_protozero_unittests",
srcs: [
"src/protozero/copyable_ptr_unittest.cc",
+ "src/protozero/message_arena_unittest.cc",
"src/protozero/message_handle_unittest.cc",
"src/protozero/message_unittest.cc",
"src/protozero/proto_decoder_unittest.cc",