-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow glossary command #14
Comments
@N4M3Z: yikes! so, frameworks like ohmyzsh and tools like rvm add a lot of shell functions, which will slow One obvious approach to making this faster is to pre-render the reference and glossary data, following a Given four functions: .
├── clone.inc
├── commits.inc
├── glossary
│ ├── clone.gloss
│ ├── commits.gloss
│ ├── git.list
│ ├── misc.list
│ ├── tophogs.gloss
│ └── weather.gloss
├── tophogs.inc
├── weather.inc the lists themselves could be trivially sorted when |
I am using zgen myself, but I do have nvm, rvm and assorted plugins installed, so I guess that would be the issue behind this. Given your comment on speeding things up, are you planning to do this change yourself? |
It may be a few weeks until I can give this some attention. If you're willing to work on it sooner, I'd happily take a PR! |
I would be willing to work on it sooner, but I am not sure where to start? If you can drop a few more suggestions, I could look into the code and figure out if I have to power to tackle this. |
Another minor suggestion would be to alias |
@N4M3Z: interesting suggestion! I'll consider that. What I was thinking above is to rewrite the
Then
revise() {
...
printf '%s\n' 'zero-length file, revision aborted!'
fi
command rm "$temp"
_gloss_function "$func"
}
|
Running glossary command seems very slow on my system (zsh 5.0.7 x86_64-apple-darwin14.0.0). I only have one user defined function. Is this expected?
The text was updated successfully, but these errors were encountered: