Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Auto-complete very slow for make command, even using auto-complete code from master branch



On Sun, Jul 6, 2025 at 10:54 AM Marcos Alano <marcoshalano@xxxxxxxxx> wrote:
>
> It seems to trigger the auto-complete but OpenWrt has a very big and
> complex Makefile, with a lot of Makefiles across the repository.
[...]
> Any way to debug that to find the culprit?

Typing ctl-x ? (two keystrokes) instead of TAB will invoke
_complete_debug, which writes a log file in /tmp of everything
executed.  Most likely, however, it's spending most of its time in
_make-parseMakefile, which for example when completing in the zsh
sources runs for about 2100 commands, or about 2/3 of all the lines in
the dump.




Messages sorted by: Reverse Date, Date, Thread, Author