junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
61.95k stars 2.34k forks source link

Examine Profile-guided optimization (PGO) #3834

Open FilipAndersson245 opened 1 month ago

FilipAndersson245 commented 1 month ago

Checklist

Output of fzf --version

0.52.1 (6432f00)

OS

Shell

Problem / Steps to reproduce

Profile-guided optimization (PGO), also known as feedback-directed optimization (FDO), is a compiler optimization technique that feeds information (a profile) from representative runs of the application back into to the compiler for the next build of the application, which uses that information to make more informed optimization decisions. For example, the compiler may decide to more aggressively inline functions which the profile indicates are called frequently.

https://go.dev/doc/pgo

Enabling PGO usually result in somewhere between 2-14% better performance, I think it would be interesting to enable this for fzf.

junegunn commented 1 month ago

Thanks, I will take a look.