jtbm37 / all-the-icons-dired

Adds dired support to all-the-icons
GNU General Public License v3.0
197 stars 26 forks source link

Performance improvements #41

Open noctuid opened 4 years ago

noctuid commented 4 years ago

Enabling all-the-icons-dired-mode takes opening my home directory from ~0.08 to ~0.50 seconds on average (according to benchmark-run). Like suggested in #8, a simple improvement would be to automatically disable it in buffers with more than a certain configurable amount of lines. You can't just check the number of lines in dired-mode-hook, so I'm not sure if there's a great way to do this. Even better might be to only put icons on visible lines initially (and then maybe add them later when the user scrolls or with an idle timer, though that may be too complicated).

noctuid commented 2 years ago

It's worth mentioning that dirvish supports performant icons.