>>>>> On Tue, 3 Sep 2013, Duncan wrote: [Please check your e-mail agent. The "References:" header in your posting was broken.]
> Zac mentioned in a different subthread that portage's logger is > single-threaded ATM, and could become a bottleneck if it had to do > too much output processing. > How feasible might it be to make something like this a (possibly > optional but presumably enabled by default) portage dep, and set > portage's default logging to use it when writing the log file (as > opposed to the screen output)? Presumably that would pipe to another > app to do the actual logfile filtering and writing, so the threading > issue would disappear. > Actually, presuming there's already a python implementation to > parallel that perl one, it's possible the only thing that would need > changed would be portage's default logging command. Pythonistas? Isn't it just a matter of regexp matching? For example, Emacs' ansi-color.el discards any string that matches <ESC>\[\([ABCDsuK]\|2J\|=[0-9]+[hI]\|[0-9;]*[Hfm]\) and it seems to work in the common cases. Ulrich
