News for hackers. Stuff that matters.

zamazan4ik

Re:Rust's derive often implies inline on Wednesday October 07, 2026 @09:20AM (#49992439)
Or just try to avoid all of these optimization guesses by using Profile-Guided Optimization (PGO), that inserts/deletes all inlines based on actual application runtime profile.
Re:Exploring Typst, a new typesetting system similar to LaTeX on Saturday October 12, 2024 @11:26PM (#41824948)
For anyone who is interested in speeding up Typst, I can recommend taking a look at this issue: https://github.com/typst/typst/issues/1733

TL;DR - Profile-Guided Optimization (PGO) can improve Typst's performance for 10%+

I hope one day the compiler itself will be optimized even more: https://github.com/exaloop/codon/issues/137
Yep. Information is still a bit messy to navigate. I think the most "preprocessed" PGO source for now is this unfinished yet article: https://github.com/zamazan4ik/awesome-pgo/blob/main/article/...

Is a 10% performance win worth it or not of course depends on your case. For some situations, even 2x-3x performance is not worth it at all, in other cases, even a few percent (or even half of a percent) win is a huge thing (especially on Google-like scales). If different ways work for you fine - it's great since you don't need to spend your time with PGO!

Nope, I didn't test PGO explicitly on its FTS functionality. However, I am 99% sure that by enabling PGO for FTS you can expect ~5-10% performance win too.
Re:Optimizing Large-Scale OpenStreetMap Data with SQLite on Saturday July 06, 2024 @06:33PM (#40893854)
If you are interested in optimizing the project further, I can suggest you rebuilding SQLite with Profile-Guided Optimization (PGO). I collected as many as possible materials (including many related benchmarks) in my repo: https://github.com/zamazan4ik/awesome-pgo . Regarding SQLite and PGO, I have the following link: https://sqlite.org/forum/forumpost/19870fae957d8c1a
Re:Announcing SurrealDB 1.0 on Sunday October 29, 2023 @04:07PM (#38062203)