docs: Update performance.md (#188)

* docs: Update performance.md

- add documentation about PGO usage for optimizing Rinja's performance
This commit is contained in:
Alexander Zaitsev 2025-05-28 11:39:03 +02:00 committed by GitHub
parent 39b957a1b3
commit 08682a3133
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,3 +59,7 @@ opt-level = 3
This may affect clean compile times in debug mode, but incremental compiles
will be faster.
## Profile-Guided Optimization (PGO)
To optimize askama's performance, you can compile your application with [Profile-Guided Optimization](https://doc.rust-lang.org/rustc/profile-guided-optimization.html). According to the [tests](https://github.com/mitsuhiko/minijinja/pull/588#issuecomment-2387957123), PGO can improve the library performance by 15%.