diff options
author | Dan Kogai <dankogai@dan.co.jp> | 2003-06-16 10:48:49 +0900 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-06-15 17:22:08 +0000 |
commit | c23d2014b1a223f2595b3a2dcd8277fab2a0bb38 (patch) | |
tree | 5b343ba2abfafa8b5b543e1dc3afe03776b53476 /hints/freebsd.sh | |
parent | 622913ab81739f4a9419ed541a122ff2495c8ab1 (diff) | |
download | perl-c23d2014b1a223f2595b3a2dcd8277fab2a0bb38.tar.gz |
Start using Perl malloc in FreeBSD since the system malloc
is reaaally slooow for Perl.
Subject: FreeBSD 5.1 vs. -Uusemymalloc
Message-Id: <3CE9B94D-9F51-11D7-AF50-000393AE4244@dan.co.jp>
p4raw-id: //depot/perl@19790
Diffstat (limited to 'hints/freebsd.sh')
-rw-r--r-- | hints/freebsd.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/hints/freebsd.sh b/hints/freebsd.sh index 937df2a85a..5818097bfd 100644 --- a/hints/freebsd.sh +++ b/hints/freebsd.sh @@ -92,10 +92,17 @@ case "$osvers" in d_setegid='undef' d_seteuid='undef' ;; +4.*) # In FreeBSD 4 and 5 the system malloc is performance-wise + # VERY bad for Perl-- we are talking of differences of not + # one, but TWO magnitudes. + usemymalloc=y + ;; +5.*) usemymalloc=y + ;; *) usevfork='true' case "$usemymalloc" in - "") usemymalloc='n' - ;; + "") usemymalloc='y' + ;; esac libswanted=`echo $libswanted | sed 's/ malloc / /'` ;; @@ -250,7 +257,7 @@ EOM # Even with the malloc mutexes the Perl malloc does not # seem to be threadsafe in FreeBSD? - usemymalloc=n + usemymalloc=y esac EOCBU |