diff options
author | Chen Guo <chenguo4@ucla.edu> | 2010-12-10 13:13:36 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2010-12-11 00:29:13 -0800 |
commit | c9db0ac6decb8121097d67e13659748ff3b3bcd6 (patch) | |
tree | af7175a3ef804ef7e2de5aafb9e93b273cc15ade /cfg.mk | |
parent | d1f700355630c2d6e22ebff9de5f15b10aa14185 (diff) | |
download | coreutils-c9db0ac6decb8121097d67e13659748ff3b3bcd6.tar.xz |
sort: preallocate merge tree nodes to heap.
* src/sort.c: (merge_tree_init) New function. Allocates memory for
merge tree nodes.
(merge_tree_destory) New function.
(init_node) New function.
(sortlines) Refactor node creation code to init_node. Remove now
superfluous arguments. All callers changed.
(sort) Initialize/destory merge tree. Refactor root node creation
to merge_tree_init.
Diffstat (limited to 'cfg.mk')
0 files changed, 0 insertions, 0 deletions