aboutsummaryrefslogtreecommitdiffstats
path: root/debian/watch
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2016-01-15 15:40:32 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2016-01-15 15:40:32 +0100
commit025bf75f863750d29f7c7b523c2ad92f5bb62832 (patch)
tree5259d7c2181f63c49d64f8a02efb5ca1a330f6bb /debian/watch
parentdbbbe0626872bd88a0262a8545b81a1b5eeceaa4 (diff)
downloadcolorize-025bf75f863750d29f7c7b523c2ad92f5bb62832.tar.gz
colorize-025bf75f863750d29f7c7b523c2ad92f5bb62832.tar.bz2
Optimize merging for partial lines further
Completing partial lines (i.e., to ones without truncated escape sequences) can be handled more efficiently by concatenating only the partial line beginning at the last escape control character with the characters read from the input stream. Compared to previous code which concatenated the *entire* partial line with the characters read, pass now the resulting string of aforementioned concatenation separately to the escape sequence cleaning function. Even though it may appear as a minor optimisation, it is a /substantial/ improvement in terms of memory being allocated when cleaning lines.
Diffstat (limited to 'debian/watch')
0 files changed, 0 insertions, 0 deletions