Replies: 2 comments 7 replies
-
|
Thanks for sharing. Have you tried running the benchmarks? The zsh-abbr performance docs you linked say how… almost. Looking at it now, I see the docs don't say to run that from the zsh-abbr directory. So start with |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First of all, thank you for developing this wonderful tool. I use zsh-abbr all the time. According to
grep --count '^abbr' $ABBR_USER_ABBREVIATIONS_FILE, I currently have 461 abbreviations. I even have an abbreviation to edit myABBR_USER_ABBREVIATIONS_FILE!However, it feels like zsh-abbr has become a victim of its own success. The time to first prompt feels quite long.
I'm using v6.2.1 on a 2020 ThinkPad laptop (32 GB RAM) for the following tests. On a slow VPS, things are significantly worse.
Running
/usr/bin/time zsh -i -c exitwith a blankABBR_USER_ABBREVIATIONS_FILE:With almost 500 abbreviations:
Here are my
zprofresults:I'm wondering if these results are to be expected?
According to this formula, 500 abbreviations should only add about 200ms, but that doesn't seem to be the case for me.
Is there anything I can do to speed things up? The only thing that seems to help is deleting a large number of abbreviations.
Beta Was this translation helpful? Give feedback.
All reactions