git: btools: Strip libpthread dep for usr.bin/sort.
zrj at crater.dragonflybsd.org
Wed Nov 15 11:19:34 PST 2017
Author: zrj <rimvydas.jasinskas at gmail.com>
Date: Tue Nov 14 20:41:00 2017 +0200
btools: Strip libpthread dep for usr.bin/sort.
This is one in particular was annoying me for long. It has a potential of using
ptreads for sorting speed up. Running parallel sort(1) in various buildworld
places actually can result in less performance on maximum parallel builds due
to interference with other cpu cores and we can not be sure about the state of
host's static libpthread lib. Also, so far I did not noticed any performance
degradation when sort is used without threads support for buildworld purposes.
This utility (in btools case) is compiled statically so bringing whole pthreads
static lib into memory has a bigger penalty then in most cases sorting anyway.
This a single btools/ctools case that depends on -lpthread. Having a slim,
more stable buildings tools is prefered than dubious compilation speed
enhancements for critical buildworld infrastructure.
The libmd.a dependency will be revemoved in separate patch.
Summary of changes:
usr.bin/sort/Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
DragonFly BSD source repository
More information about the Commits