* ralloc.c (r_re_alloc): Instead of allocating a new bloc at the
authorJim Blandy <jimb@redhat.com>
Wed, 9 Sep 1992 00:05:42 +0000 (00:05 +0000)
committerJim Blandy <jimb@redhat.com>
Wed, 9 Sep 1992 00:05:42 +0000 (00:05 +0000)
commit16a5c72935c9b945d083e6e7397033182ece3357
tree71df8225634f0a71f7cf02f3d09c74dc40073394
parent6cf420725b8c77321b37c858f7b698bd76224851
* ralloc.c (r_re_alloc): Instead of allocating a new bloc at the
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.
src/ralloc.c