Skip to content

Startup Performance hit with source zsh-syntax-highlighting #427

Open
@xbeta

Description

@xbeta

I had this in my ~/.zshrc, and I found there are some performance issue when loading up this zsh.

source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

before comment out the above line:

 /usr/bin/time zsh -i -c exit;
        3.08 real         1.75 user         1.03 sys

after comment out the above line:

 /usr/bin/time zsh -i -c exit;
        2.69 real         1.47 user         0.89 sys

Current version at :

commit ad522a091429ba180c930f84b2a023b40de4dbcc

Note: I have other perf issues on startup that is not related to zsh-syntax-highlighting, but I'm pursuing each hotspot to cut the perf number lower. And zsh-syntax-highlighting is one of them.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions