parseable icon indicating copy to clipboard operation
parseable copied to clipboard

PGO + Bolt

Open zamazan4ik opened this issue 2 years ago • 5 comments

parseable right now does not support building with more advanced optimization techniques like PGO and BOLT. This tooling has an increasing adoption in the community as a tool to additionally optimize programs. With this tooling, there is a huge chance to gain even more performance "for free".

Here I suggest considering an option at least to play with LTO ("fat" version) + PGO + Bolt pipeline (or any combination of them) and test, does it give a performance to the project or not. If yes, would be awesome to have prebuilt binaries with more advanced optimization from the scratch. Also, for the users will be helpful to have the ability to tweak manually their own binaries to their own workloads with the integrated into the build scripts functionality.

Since the project is quite small I do not expect (at least yet) significant improvement from the PGO right now. But at least a good option to try :)

Also, there are some caveats to consider like:

  • Significantly increased build times
  • BOLT could be still unstable (or even broken) on some architectures

Links:

  • Rust experience with LTO + PGO + BOLT: https://kobzol.github.io/rust/rustc/2022/10/27/speeding-rustc-without-changing-its-code.html

zamazan4ik avatar Dec 23 '22 10:12 zamazan4ik

Thank you for the issue @zamazan4ik we’ll review the blog post, looks interesting for sure - but as you said, at our current size it may not be the most useful.

nitisht avatar Dec 23 '22 10:12 nitisht

Closing this for now because we don't have cycles to explore this. We may get to this at a later stage

nitisht avatar Apr 20 '23 09:04 nitisht

@nitisht I suggest you re-open the issue, so someone in the future can start working on it since the issue will be open.

zamazan4ik avatar Aug 25 '23 11:08 zamazan4ik

Thanks @zamazan4ik . Reopening now..

nitisht avatar Aug 25 '23 13:08 nitisht