From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20987 invoked by alias); 5 Jul 2016 06:33:21 -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: 38793 Received: (qmail 17259 invoked from network); 5 Jul 2016 06:33:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=hXMpYUzXXVKh2oEO8hQxqnh8E5NmyRFbkNG+lZI+5J0=; b=1Oz6NPkmvv2NVbtpiy5Q4pEaQZBpzjrAu3J6crGZuMlEPHdFG6xpqPvxz9/4x++zyW QfsGV35dRuarB16r4WsorSVvcWZw7lAOKeYdp7sw8MEL1UBNUzzzehEobD2k98ECLIXk a8sjjg0YHH6De7SAoMqjqOoaAmr9JAG2glMBAkLDttZ6dd6J6FQ6Un6eP2KLMy0uRNja MaXPYaZuqgMLAgD1Z5M9LOSWoiwGAsD9zZajnSpD9gyRzAITGlTmPGhzWwQAIipm3LB8 nE5uGF5+LLytRD20fM+rJ6m7MB6d1X8j3aUy9KoQbQvlcFSIRYzNEE7Uojj8TL7FStr+ ljlg== 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 :references:to:subject:mime-version; bh=hXMpYUzXXVKh2oEO8hQxqnh8E5NmyRFbkNG+lZI+5J0=; b=It85rsy4wRUnEaSSEG4kOdDoAmX8DrlSyMy7anYr54UBn9nm247IoYSMe1MyOy4rPI oUlSSQ6alUt+7JsLSvJFTienRDsiVdqjkQU3hfGQhytjYU7uGso6uwQRB42RGt/xGdhR Alx5BjQP3zfU+nVTzw4vAV2ZEX5EZ7LKHT6FYCXXda+90YZ0spDHRBDryTLDQEb9Igp1 obz9eugk2FkNoJ+mterpQiXmaabxnoENb7kLGEbE/FH9LsTLwRe3xPQq0zwt544X7ylo MBE5K4u2cXlFKP+kuVca8727gPU7mQ/8FN9LBnY3ANLyLTgiu6eefEuaji8plfRrw7ww fqLw== X-Gm-Message-State: ALyK8tJCoVsR3GaQjHAqkYh3x0m39UdLfhGFLrPVQW+mHXR1kbIxAsUiIgjkleV7Jd/Weg== X-Received: by 10.98.76.211 with SMTP id e80mr29093481pfj.28.1467700398751; Mon, 04 Jul 2016 23:33:18 -0700 (PDT) From: Bart Schaefer Message-Id: <160704233325.ZM14796@torch.brasslantern.com> Date: Mon, 4 Jul 2016 23:33:25 -0700 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Re: Next release (5.3)" (Jul 5, 8:00am) References: <20160704114016.190f48be@pwslap01u.europe.root.pri> <160704080424.ZM12848@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "Zsh Hackers' List" Subject: Re: Next release (5.3) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 5, 8:00am, Sebastian Gniazdowski wrote: } Subject: Re: Next release (5.3) } } On 4 July 2016 at 17:04, Bart Schaefer wrote: } > (4) Sebastian's mysterious slowdown on the first run of a nested } > pair of autoload functions } } Isn't this settled? Large data passed to positional parameters uses } heap, high heap usage causes slowness. Double call with the same large } positional parameters - twice as much heap usage, and more slow down. That doesn't explain why it happens for the inner autoload *every time around the loop* in the outer one. Once loaded, the second and later calls should be faster. (Unless it's simply the case that the heap from making the call to the outer function is so large that it's affecting everything downstream.)