Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-41702: [C++][Parquet] Thrift: generate template method to accelera…
…te reading thrift (#41703) ### Rationale for this change By default, the Thrift serializer and deserializer call many virtual functions. However, the Thrift C++ compiler has an option to generate template methods that does away with the cost of calling virtual functions. It seems to make the metadata read/write benchmarks around 10% faster. ### What changes are included in this PR? 1. `cpp/build-support/update-thrift.sh`: enable `templates` option to Thirft C++ compilerargument 2. `cpp/src/parquet/thrift_internal.h`: use generated code 3. `cpp/src/generated`: update generated files. ### Are these changes tested? Covered by existing tests. ### Are there any user-facing changes? No. * GitHub Issue: #41702 Authored-by: mwish <maplewish117@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
- Loading branch information