Skip to content

Slow output with some Makefiles #750

@danielhoherd

Description

@danielhoherd

The following Makefile pauses between each line of output. I have whittled it down to this string from a longer string, but could not whittle it down any further, so I don't know what part of the string is causing the problem.

FOO:=$($(BLARG_BUILD_MAKEFILE_PATH) $(BLARG_BUILD_MAKEFILE_PATH))
FOO:=$($(BLARG_BUILD_MAKEFILE_PATH) $(BLARG_BUILD_MAKEFILE_PATH))
FOO:=$($(BLARG_BUILD_MAKEFILE_PATH) $(BLARG_BUILD_MAKEFILE_PATH))

Also, the lines that take a long time to parse have a different colored FOO string than when you alter the line to where it does not have a delay problem.

$ time bat Makefile
───────┬──────────────────────────────────────────────────────────────────
       │ File: Makefile
───────┼──────────────────────────────────────────────────────────────────
   1   │ FOO:=$($(BLARG_BUILD_MAKEFILE_PATH) $(BLARG_BUILD_MAKEFILE_PATH))
   2   │ FOO:=$($(BLARG_BUILD_MAKEFILE_PATH) $(BLARG_BUILD_MAKEFILE_PATH))
   3   │ FOO:=$($(BLARG_BUILD_MAKEFILE_PATH) $(BLARG_BUILD_MAKEFILE_PATH))
───────┴──────────────────────────────────────────────────────────────────

real	0m2.834s
user	0m2.835s
sys	0m0.000s

This issue does not arise if you specify a different language, eg: bat -l yaml Makefile

This is similar to #677

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions