Speed up insertion of subprocess output on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Wed, 1 Feb 2012 16:51:20 +0000 (18:51 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 1 Feb 2012 16:51:20 +0000 (18:51 +0200)
commit78cef8778985b15bcb16a9ed9604395b3ab6b9c3
tree80aa81f20bb03a441d288052a311a423f7f5391e
parent90586172568f5a4e5d4b62f59deb1dfb69e8b4f5
Speed up insertion of subprocess output on MS-Windows.

 src/ralloc.c (resize_bloc, r_alloc_sbrk): Don't call memmove if its
 first 2 arguments are identical.  This makes inserting large
 output from a subprocess an order of magnitude faster on
 MS-Windows, where all sbrk'ed memory is always contiguous.
src/ChangeLog
src/ralloc.c