From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2182 invoked by alias); 25 Oct 2015 17:23:17 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36956 Received: (qmail 9949 invoked from network); 25 Oct 2015 17:23:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments:to :subject:mime-version:content-type; bh=8WvrCcYcLyVjXaIZn06IbK8KirRik2EaVCd6/nAhv1w=; b=CtuSMLDnt5UNSVyxL8kFTHBYLw35tfiYEqyV3RuIebzcXglSzmmGhoDFSWwjwt2QtQ DBHUY7u0TQrHVSVLcddyE4rxr9MynC9mtEgMkRfV4fW7nkmSqXBrKy8YnGlmZzSoug2z MGLIsMpdJFj+gSKxNFscjN2C28fAe85c0ig7cwC12vEAKxFIz2wQ13DkktbfntTRiNXC uUWnngV2t4IFClfwuGC5LXxs7lucL07gcPhhRXjK7wQ/HqnSPtaqlGjLfk1Pr8re9Tcs hNh5Uku7rGSOIUsFn8kH/OugsDGinAoTfIAzCWe7EtqCM90m+eW2OkKaus0rMB7Dn0Bl 8izA== X-Gm-Message-State: ALoCoQnwNL+wYTb5tqzAqrp8LEIOcwi453ZhbgxX6vyeAeL3RltUReBE7XltVRG5eNQuL2zo+yJs X-Received: by 10.60.60.65 with SMTP id f1mr21522987oer.43.1445793794532; Sun, 25 Oct 2015 10:23:14 -0700 (PDT) From: Bart Schaefer Message-Id: <151025102304.ZM29756@torch.brasslantern.com> Date: Sun, 25 Oct 2015 10:23:04 -0700 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Re: Slowdown around 5.0.5-dev-0" (Oct 25, 8:35am) X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Sebastian Gniazdowski , zsh-workers@zsh.org Subject: Re: Slowdown around 5.0.5-dev-0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 +#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)