mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-26 19:31:15 -03:00
Just following basic shellscript optimization: - Remove a useless use of cat (`status get-file` takes microseconds, `status get-file | cat` is on the order of a millisecond - slower with bigger $PATH) - Pipe, don't run in a loop - Filter early This reduces the time taken from 12ms to 6ms on one of my systems, and 6.5ms to 4.5ms on another. This is paid on every single shell startup, including non-interactively, so it's worth it. There's more to investigate, but this is a good first pass.