Reduce string catenation overhead a little bit in readline functions.
authorLars Wirzenius <liw@liw.fi>
Tue, 26 Oct 2010 08:37:52 +0000 (09:37 +0100)
committerLars Wirzenius <liw@liw.fi>
Tue, 26 Oct 2010 08:37:52 +0000 (09:37 +0100)
commit9e54a34b9df1fe94208c9ebaa6b1a38ce88212f4
treedfd9b63b2ae69440f5586acac02b4814e536f520
parent32467c0e8782b442c41069172d362e93ef878191
Reduce string catenation overhead a little bit in readline functions.

When we make a temporary dynstr for the buffered text to be appended,
we can use dynstr_new_from_constant_memory, since the buffer won't
change while the temporary string lives.

Thanks to Richard Braakman for pointing this out.
dynstr.c