protocolbuffers/protobuf

Evaluate Profile-Guided Optimization (PGO)

Open

#13,248 创建于 2023年7月8日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)C++ (16,128 fork)batch import
enhancementhelp wanted

仓库指标

Star
 (71,223 star)
PR 合并指标
 (平均合并 2天 11小时) (30 天内合并 185 个 PR)

描述

Hi!

Recently I checked Profile-Guided Optimization (PGO) improvements on multiple projects. The results are here.

Since PGO showed measurable improvements in compiler-like loads (Clang, Clangd, clang-format, GCC, Rustc, etc.) I think it could be useful to check PGO on Protobuf compiler (protoc) as well.

We need to perform PGO benchmarks on protoc. And if it shows improvements - add a note about possible improvements protoc performance with PGO. Providing an easier way (e.g. a build option) to build scripts with PGO can be useful for the end-users too. Improving protoc performance can help with faster Protobuf compilation time (and that's nice to have e.g. on CI).

贡献者指南