]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Tune allocation and comparison of nodes
authorJim Meyering <jim@meyering.net>
Sat, 3 Mar 2001 18:23:29 +0000 (18:23 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 3 Mar 2001 18:23:29 +0000 (18:23 +0000)
commit25f95ca91e54d573732cd22ecedc35e97ee81248
tree82551ff4d6cced26e0c2a9f905fb673dc4c191cf
parentcfd53be2c8e7b0ef5961d1a10c400054f43a2b07
Tune allocation and comparison of nodes
representing temp files.  This improved CPU performance of
'sort -S 1 *.[ch]' by 17% on my host.

(struct tempnode): name member now uses struct hack.
(temphead): Now a pointer, not a structure.  All uses changed.
(create_temp_file): Allocate node using struct hack.
(zaptemp): Free node using struct hack.  Use pointer comparison, not
string comparison.
src/sort.c