diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-11-21 22:25:14 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-11-21 22:25:14 +0000 |
commit | e87b9a6e2c373d318fe478b3acf223230d4934a1 (patch) | |
tree | 67eb1ba8c72d793358608e97b8bcb9aa431b1d71 /vos | |
parent | 413cf85cb543cb18c74c3cda911a828f3aa427db (diff) | |
download | perl-e87b9a6e2c373d318fe478b3acf223230d4934a1.tar.gz |
Implement the sort pragma. Split sort code from pp_ctl.c
to pp_sort.c. Includes the quicksort stabilizing layer
from John P. Linderman. -Msort=qsort or -Msort=fast is
faster than without (or with -Msort=mergesort or -Msort=safe)
for short random inputs, but for some reason not quite as fast
as 5.6.1 qsort. More benchmarking, profiling, tuning, and
optimizing definitely needed.
p4raw-id: //depot/perl@13179
Diffstat (limited to 'vos')
-rw-r--r-- | vos/build.cm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vos/build.cm b/vos/build.cm index ea3649975a..0cf3cb9128 100644 --- a/vos/build.cm +++ b/vos/build.cm @@ -154,6 +154,8 @@ &if (command_status) ^= 0 &then &return !&compiler& <<pp_pack.c &diag& &cpu& &cflags& -o pp_pack&s& &if (command_status) ^= 0 &then &return +!&compiler& <<pp_sort.c &diag& &cpu& &cflags& -o pp_sort&s& +&if (command_status) ^= 0 &then &return !&compiler& <<pp_sys.c &diag& &cpu& &cflags& -o pp_sys&s& &if (command_status) ^= 0 &then &return !&compiler& <<regcomp.c &diag& &cpu& &cflags& -o regcomp&s& |