Very slow when printing with colors
Author: mohd-akramCreated Mar 31, 2022Updated Sep 3, 2026
Labelsbugv4
Describe the bug yq is very slow when printing a YAML file with colors.
Version of yq: 4.24.2 Operating system: macOS Installed via: MacPorts
Input Yaml big.zip
Command
time yq -C big.yamlActual behavior Command takes more than half a minute to finish.
real 0m36.762s
user 1m31.913s
sys 0m2.216sExpected behavior
Command completes in a couple seconds at most. For reference, time using the no colors flag -M:
real 0m0.382s
user 0m0.365s
sys 0m0.084sSource: mikefarah/yq