cp: remove redundant possibly expensive heap deallocation

If the hash structures grow sufficiently large so that
the system is actively swapping, then the deallocation
can take a significant amount of time.  Details at:
http://lists.gnu.org/archive/html/coreutils/2014-08/msg00012.html

* src/cp.c (main): Only call hash deallocation routines
when in lint checking mode.
* THANKS.in: Remove as now in the git author list.
This commit is contained in:
Rasmus Borup Hansen 2014-08-11 15:07:05 +01:00 committed by Pádraig Brady
parent 9bcc626190
commit 65d8e6906a
2 changed files with 2 additions and 1 deletions

View File

@ -523,7 +523,6 @@ Raimonds Miltins raimonds@pro-9.com
Rainer Orth ro@TechFak.Uni-Bielefeld.DE
Ralf W. Stephan stephan@tmt.de
Ralph Loader loader@maths.ox.ac.uk
Rasmus Borup Hansen rbh@intomics.com
Raul Miller moth@magenta.com
Raúl Núñez de Arenas Coronado raul@pleyades.net
Rich Burridge rich.burridge@oracle.com

View File

@ -1214,7 +1214,9 @@ main (int argc, char **argv)
ok = do_copy (argc - optind, argv + optind,
target_directory, no_target_directory, &x);
#ifdef lint
forget_all ();
#endif
exit (ok ? EXIT_SUCCESS : EXIT_FAILURE);
}