commit | 2d5d6b249ad7df93c3612b6e599b86b697151e30 | [log] [tgz] |
---|---|---|
author | Igal Shilman <igalshilman@gmail.com> | Tue Aug 10 18:13:19 2021 +0200 |
committer | Tzu-Li (Gordon) Tai <tzulitai@apache.org> | Wed Aug 11 21:39:22 2021 +0800 |
tree | 1f5914ced469047cd641d62db7ee657ad26fd294 | |
parent | f28a182a1e32590f4bd35d327b04eccd8688053f [diff] |
[FLINK-23712] Improve Protobuf serialization performance Profiling allocations shows that around 25% of the allocations happens while parsing Protobuf, this happens because the CodedInputStream/CodedOutputStream allocate a 4kb buffer on construction. This can be easily avoided by caching and reusing them. This closes #251.