improve performance of django's bash completion
|Reported by:||Raphaël Hertzog||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||1.4|
|Cc:||andersk@…, luke@…||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In http://bugs.debian.org/695811 Anders Kaseorg <andersk@…> reported that the usage of the basename command was severly impacting the performances of Django's bash completion script.
The attached patch gets rid of "basename" in favor of some bash internal pattern substitution and improves the perfornance by a factor of 5 according to its author.