resize without initialization for trivial types in protocol_methods
commit634c96038cd486ca8cd91caf45158b9060465904
authorJialin Ouyang <jialino@meta.com>
Mon, 20 May 2024 19:14:12 +0000 (20 12:14 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 20 May 2024 19:14:12 +0000 (20 12:14 -0700)
treeb17b5e05f770caa64342aef0c7ee132ab0bfcafa
parent59a04114d696f235688cd4b8656b2263df9c22e8
resize without initialization for trivial types in protocol_methods

Summary:
Use folly::resizeWithoutInitialization to further reduce the cost of initialization.

# Highlight
- Binary BigListInt encoding is further reduced from 7.81us to 7.35us.

Reviewed By: thedavekwon

Differential Revision: D57236617

fbshipit-source-id: 52aa1adba78d88ea0647e1d230c1a25bcfdd80ec
third-party/thrift/src/thrift/lib/cpp2/protocol/detail/protocol_methods.h