Evaluate using Profile-Guided Optimization (PGO) and LLVM BOLT for Perspective C++ data engine #2406
zamazan4ik
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
Recently I checked Profile-Guided Optimization (PGO) improvements on many projects. All current results are available here. According to the multiple tests, PGO can help with improving performance in many cases (including databases). Since Perspective cares about the performance, I think trying to optimize Perspective's C++ part with PGO would be a good idea.
I can suggest the following action points:
Since the Perspective native part is the library, I think the Pydantic-core experience can be reused here. Also, Clang supports PGO for shared libraries.
Maybe testing Post-Link Optimization techniques (like LLVM BOLT) would be interesting too (Clang and Rustc already use BOLT as an addition to PGO) but I recommend starting from the usual PGO.
Here are some examples of how PGO optimization is integrated in other projects:
configure
scriptBeta Was this translation helpful? Give feedback.
All reactions