-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
draft(files): compute prefix only for visible part of preview
Main motivation for doing this is to enable smoother vertical navigation with enabled 'mini.icons'. Without this, `MiniIcons.get()` is called *synchronously* for *all* entries in previewed directory. When done first time (before caching) this manifests into a visible delay in case of many (like 1000+) files. Especially if they all don't have detectable filetypes and contain many dots. The only downside of this optimization is that with enabled preview, all lines are computed twice: first in preview (if particular directory is even previewed), second - when focused.
- Loading branch information
1 parent
08b4769
commit 22bc4d3
Showing
1 changed file
with
46 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters