summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2010-08-04 16:10:10 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2010-08-04 16:10:59 -0700
commit2b49b140cc13cf36ec5ee5acaca5ac7bfeed6366 (patch)
treef527d9cdeae11387f80ee5ea81b3bfe869c55e8d /po
parentdb48b362417e3f86671c040610ddfa27596bd258 (diff)
downloadcoreutils-2b49b140cc13cf36ec5ee5acaca5ac7bfeed6366.tar.xz
sort: -R now uses less memory on long lines with internal NULs
* lib/Makefile.am (libcoreutils_a_SOURCES): Remove xmemxfrm.c, xmemxfrm.h. * lib/memxfrm.c, lib/memxfrm.h, lib/xmemxfrm.c, lib/xmemxfrm.h: Remove. * m4/memxfrm.m4: Likewise. * m4/prereq.m4 (gl_PREREQ): Remove gl_MEMXFRM. * po/POTFILES.in: Remove lib/xmemxfrm.c. * src/sort.c: Don't include xmemxfrm.h. (cmp_hashes): Remove. (xstrxfrm): New function. (compare_random): If a line contains NULs, don't create a big buffer that contains the strxfrm output of each string in the line. Instead, accumulate checksums and differences as we go, so that at any one time we have to store at most the output of a single strxfrm call when processing the line. This removes the need for an memxfrm function.
Diffstat (limited to 'po')
-rw-r--r--po/POTFILES.in1
1 files changed, 0 insertions, 1 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in
index c862877c4..be20f4c28 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -29,7 +29,6 @@ lib/version-etc.c
lib/xalloc-die.c
lib/xfreopen.c
lib/xmemcoll.c
-lib/xmemxfrm.c
lib/xprintf.c
lib/xstrtol-error.c