
May 21, 2008
12:04 a.m.
On Tue, May 20, 2008 at 07:16:45PM +0200, Johannes Hofmann wrote:
Hi,
attached is a small patch to improve memory usage. It creates a single word for a sequence of spaces in PRE mode instead of one word per character.
Good idea, but it's not the same rendering. Check the offsets with the attached file. BTW, there's a memory leak when len=0 (bacause Dstr allocates for the string). While reviewing I thought why not just count the spaces and use dStrnfill(num_spc, ' '). -- Cheers Jorge.-