Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Slowdown around 5.0.5-dev-0
- X-seq: zsh-workers 36956
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: Slowdown around 5.0.5-dev-0
- Date: Sun, 25 Oct 2015 10:23:04 -0700
- In-reply-to: <CAKc7PVDS5nWLQVMdrxMJqfpZofgTd7ZQMjAf=+DQmtC_h=7eqQ@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
On Oct 25, 8:35am, Sebastian Gniazdowski wrote:
}
} I calibrated for string_test, it's interesting how much slower
} array_test is on OS X. My machine is 2.3 GHz, maybe that's some reason
} (your is faster IIRC).
diff --git a/Src/mem.c b/Src/mem.c
index 158ad96..3138bb1 100644
--- a/Src/mem.c
+++ b/Src/mem.c
@@ -79,9 +79,16 @@
#include <sys/mman.h>
+#if 0
+/*
+ * This change was designed to enable use of memory mapping on MacOS.
+ * However, performance tests indicate that MacOS mapped regions are
+ * significantly slower to allocate than memory from malloc().
+ */
#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)
#define MAP_ANONYMOUS MAP_ANON
#endif
+#endif /* 0 */
#if defined(MAP_ANONYMOUS) && defined(MAP_PRIVATE)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author