Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluate using Profile-Guided Optimization (PGO) for Prisma #4943

Open
zamazan4ik opened this issue Jul 6, 2024 · 0 comments
Open

Evaluate using Profile-Guided Optimization (PGO) for Prisma #4943

zamazan4ik opened this issue Jul 6, 2024 · 0 comments

Comments

@zamazan4ik
Copy link

Hi!

Recently I did many Profile-Guided Optimization (PGO) benchmarks on multiple projects (including many databases like PostgreSQL, ClickHouse, Redis, MongoDB, etc.) - the results are available here. According to my tests, PGO helps with optimizing performance for many applications in different software domains. I think it can be interesting trying to apply PGO to Prisma libraries and measure the performance improvement from PGO.

I can suggest the following things to do:

  • Evaluate PGO on Prisma.
  • If PGO helps to achieve better performance - add a note to Prisma's documentation about that. In this case, users and maintainers will be aware of another optimization opportunity for Prisma.
  • Provide PGO integration into the build scripts. It can help users and maintainers easily apply PGO for their workloads.
  • Optimize prebuilt binaries with PGO if you will be able to figure out a "typical" workload.

PGO can be enabled for both standalone binaries and libraries. For starting with PGO for Rust projects I can recommend using cargo-pgo tool. However, you also can use PGO-related compiler flags directly.

P.S. Please do not treat the issue as a bug or smth like that - I just created it since Discussions are disabled for the repository. It's just an idea how Prisma's performance can be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant