Better HN
topnewbestaskshowjobs
Log inSign up

zamazan4ik

3 karma · joined Dec 30, 2022 (3y ago) · 7 submissions

Submissions

comment 1mo ago · link · parent

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.

comment 2y ago · link · parent

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%+

comment 2y ago · link · parent

I hope one day the compiler itself will be optimized even more: https://github.com/exaloop/codon/issues/137

comment 2y ago · link · parent

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!

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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

comment 3y ago · link · parent

1.0 version but https://github.com/surrealdb/surrealdb/issues/1548 is still open :)