New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hints/openbsd.sh - usemymalloc slows down newer openbsd #10440
Comments
From sullr@cpan.orgCreated by sullr@cpan.orgHi, the hints file for openbsd contains the idea, that openbsd has a better To get this number the following simple Benchmark was used: 1 for( my $i=0;$i<100000;$i++ ) { While this benchmark is artificial we noticed the heavy slowdown also Slowdowns with these options are also on Linux (Ubuntu 10.04: If you want more of these unscientific results see my talk (in german) Regards, Perl Info
|
From @rgsFixed by change below commit 9b58b54 usemymalloc slows down newer openbsd [perl #75742] Inline Patchdiff --git a/hints/openbsd.sh b/hints/openbsd.sh
index e4b1360..f13091d 100644
--- a/hints/openbsd.sh
+++ b/hints/openbsd.sh
@@ -8,8 +8,12 @@
# ./Configure -des -Dopenbsd_distribution=defined
#
-# OpenBSD has a better malloc than perl...
-test "$usemymalloc" || usemymalloc='n'
+# In OpenBSD > 3.7, use perl's malloc [perl #75742]
+case "$osvers" in
+3.[89]*|[4-9]*)
+ test "$usemymalloc" || usemymalloc=y
+ ;;
+esac
# malloc wrap works
case "$usemallocwrap" in |
@rgs - Status changed from 'new' to 'resolved' |
From otto@drijf.netIndeed, OpenBSD malloc is slower, but has many other desirable features, like randomization I'd like to mention that work has been done in OpenBSD to make the slowdown of small chunk -Otto |
Migrated from rt.perl.org#75742 (status was 'resolved')
Searchable as RT75742$
The text was updated successfully, but these errors were encountered: