Skip to content

Significantly slower to source paths to a different directory #92

Description

@OJFord

I'm hesitant to even open this, because I really don't understand what or how is happening, but it's really repeatable and badly affects my terminal start time:

With a time bass source .profile in my config.fish:

# [new terminal window]
________________________________________________________
Executed in    3.63 secs   fish           external
   usr time  280.52 millis  1361.00 micros  279.16 millis
   sys time  330.70 millis    0.00 micros  330.70 millis

~>time bass source .profile

________________________________________________________
Executed in  130.04 millis    fish           external
   usr time   98.23 millis    0.00 millis   98.23 millis
   sys time   14.84 millis    5.71 millis    9.14 millis

~>fish

________________________________________________________
Executed in    3.51 secs   fish           external
   usr time  226.67 millis    4.50 millis  222.18 millis
   sys time  310.05 millis    0.64 millis  309.42 millis

~>head -n1 .config/fish/config.fish
time bass source "$HOME/.profile"

Why is it so much slower when invoked from config.fish? Sure, there's other stuff in there, but it's only the bass source that I'm timing, as the combination of fish & head outputs show.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions