• Jim Blandy's avatar
    * ralloc.c (r_re_alloc): Instead of allocating a new bloc at the · 16a5c729
    Jim Blandy authored
    	end of the heap, copying the data to it, and then freeing the
    	original bloc, just expand the original block.  This saves a copy
    	and a call to sbrk, and also removes the large spike in memory
    	allocation that would occur when resizing large buffers.  And it's
    	less code.
    16a5c729
ralloc.c 10.8 KB