I've just filed bug 201935 about performance of bzr's bash completion, which can be improved drastically by using caching, i.e. write the output of e.g. "bzr s-c" into a bash variable and only fill it once.
This saves quite some calls to "bzr" itself and therefor makes completion faster (and more compelling to use).
Re "sed": you can replace e.g. "sed -nE 's/^([^[:space:]]+).*/\1/p'" with "grep -o ^([^[:space:]]+)".
But please create the cache on the first call, not when the completion scripts get loaded (like git does it currently).
Can you please create a branch for this, so it's easier to track status of this patch?
I've just filed bug 201935 about performance of bzr's bash completion, which can be improved drastically by using caching, i.e. write the output of e.g. "bzr s-c" into a bash variable and only fill it once.
This saves quite some calls to "bzr" itself and therefor makes completion faster (and more compelling to use).
Re "sed": you can replace e.g. "sed -nE 's/^([^ [:space: ]]+).*/ \1/p'" with "grep -o ^([^[:space:]]+)".
But please create the cache on the first call, not when the completion scripts get loaded (like git does it currently).
Can you please create a branch for this, so it's easier to track status of this patch?
Thank you!