[Feature request] improve performance handling iterm2 image protocol in --preview
#3984
Open
6 of 10 tasks
--preview
#3984
Checklist
man fzf
)Output of
fzf --version
0.55.0 (v0.55.0)
OS
Shell
Problem / Steps to reproduce
I noticed that fzf preview takes quite a long time when showing big images with iterm protocol. This gets annoying when browsing filesystem. My measurements has shown that without
fzf
rendering takes around 25ms and with fzf it gets up to 400ms.measurement with fzf
fzf.mp4
fzf opened at 11th frame 0.7333s till preview rendered at 18th frame 1.20s -> 0.4666s
baseline measurement
❯ hyperfine '/bin/cat a.chafa' --show-output ... Time (mean ± σ): 25.2 ms ± 1.0 ms [User: 0.4 ms, System: 10.0 ms] Range (min … max): 22.5 ms … 27.9 ms 129 runs
image used
![a](https://github.com/user-attachments/assets/c3a81edd-476d-4b6a-93ac-cb95045eecf7)Since without
fzf
the rendering takes much less time, it seems likefzf
has quite a lot of overhead somewhere. It would be great to optimize itThe text was updated successfully, but these errors were encountered: