Vector Downward GetSize optimization (#6925)
authorDerek Bailey <derekbailey@google.com>
Tue, 23 Nov 2021 03:50:42 +0000 (19:50 -0800)
committerGitHub <noreply@github.com>
Tue, 23 Nov 2021 03:50:42 +0000 (19:50 -0800)
commit9e4ca857b6dadf116703f612187e33b7d4bb6688
tree2ca784aba42967e7a370d133cf62f349dd6edc68
parenta2b99084b446cd9dd239b3d08ef22d2dd51a3f6e
Vector Downward GetSize optimization (#6925)

* Added Google benchmarks (and gtests)

* Separate benchmark CMakeLists.txt to its own file

* Move output directory to target just flatbenchmark

* Reduced from encoding 210ns -> 188ns

* store size_ as uoffset_t

* fixed windows c4267 warning
benchmarks/CMakeLists.txt
benchmarks/cpp/benchmark_main.cpp
include/flatbuffers/flatbuffer_builder.h
include/flatbuffers/vector_downward.h