sort: FEATURE_SORT_OPTIMIZE_MEMORY
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 4 Apr 2018 15:02:32 +0000 (17:02 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 4 Apr 2018 15:03:41 +0000 (17:03 +0200)
commitc29c2e60d8677cdec142a88609a3d040e4719439
tree9d23487088699fb4f1b4aabd9361c4a7c7d21edf
parentee1fd1246e7d25990531dbbb2d267605b8914d5d
sort: FEATURE_SORT_OPTIMIZE_MEMORY

On sorting all kernel/linux/arch/ *.[ch] files,
this reduces memory usage by 6%.

yes | head -99999999 | sort

goes down from 1900Mb to 380 Mb.

function                                             old     new   delta
sort_main                                            862    1098    +236

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/sort.c