[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Improved string writing
From: |
Marius Vollmer |
Subject: |
Re: [PATCH] Improved string writing |
Date: |
Tue, 24 May 2005 22:42:52 +0300 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Kevin Ryde <address@hidden> writes:
> (I notice "write" style string output in iprin1() always goes
> char-by-char, it'd be nice if it scanned ahead for a char needing an
> escape, to send the non-escape block as a single lfwrite. Decent size
> runs of plain chars are probably quite likely.)
I like this variant best. I don't think that writing strings with
lots of escape sequences to an unbuffered port happens often enough to
justify implementing a second buffering mechanism.
When outputting an escaped char, we can additionally assemble the
escape sequence in a fixed size buffer and then output that in one go.
I will make that change myself in the next days, but if anyone beats
me to it...
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405