From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14484 invoked by alias); 12 Jun 2018 17:28:25 -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: List-Unsubscribe: X-Seq: 42989 Received: (qmail 21454 invoked by uid 1010); 12 Jun 2018 17:28:25 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi0-f47.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.218.47):SA:0(-1.9/5.0):. Processed in 1.920018 secs); 12 Jun 2018 17:28:25 -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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=gJzqF0Qk23lDkPAlzpNQ3nIL5tliczpJydA3fALabDU=; b=H1cdZSMdXa+qDoTap36V5k7e2UNb6R6Z1+j0Vt9YCfH3sTs2TBgmxdA8xF1Bx3/f2p jMRLj3VEAHQB5uwNtMPttVj2aFYZIeJ5xnWa3pb19wPm2DjZG4EKGBzO8pJLCwXVT6y7 xj+b71AJouWrPL3tUPA7Kq28WZ9Hy4bSctw55mPc9QsicUShRcwjnayxchlA1zWpjw39 t5qSHDJlg8hmycTw44KU2WlLI2MkAd+5LY8zfKoZvof1idOPeoEdG/Ms4WkP4EAOJ0dd 9yLjp5YkGoIkfbT5C+Ur6bjtFW+POh9OTarXtjKyvNYpttRg0IsZmtSLPMYy9/zTE2bn bpqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=gJzqF0Qk23lDkPAlzpNQ3nIL5tliczpJydA3fALabDU=; b=mtRK/b6Ns2f8w5juq6jK+ui6j6yWzVwsnuoa7NfgIJYpYysxubJn7MKFyZPGKPAMFX 41NBGrOYuosHwLfBAqMZPxaj20NEo/1mijbUlDm0AkAfjxu2G9qWrg93UJO+6wjCy1O+ Gx9K8jBYfxk2Sn/lPI2/diJDZJMxVWk74AK1wFcc4MTzaUlH5XbaHkEbplNF8UgYW80e AlQAMk+jBtWKj/IPs21k2u4ZcIqaWs7j92TBveinN9I/YD9tESKDpclGoNRNiEdvNN5f QjA8EonueCEruOkw6Ge4oTKXFXPGyRw9SK3bQXkW1MfGXx0++PdkgQDAJQH7d8ehPiWc QsQg== X-Gm-Message-State: APt69E24Vjf0SXaU+H/lRT5aI8myV69ADRLa4fE8vPv0ErDxUs/eHo1g 7gOFvhUn7IYqJ/g0pGcFtH0PU9fsfSdB2t6AtbU= X-Google-Smtp-Source: ADUXVKKx3URSdjXXcAz2l7RO3E9sNEpghJw/s7LSVfJ16DkyAgDY6aL3Tqmtu3naun0JbQkHlnxAcEQTqkUkQ4hwXqg= X-Received: by 2002:aca:c287:: with SMTP id s129-v6mr2548206oif.3.1528824500402; Tue, 12 Jun 2018 10:28:20 -0700 (PDT) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Tue, 12 Jun 2018 19:27:59 +0200 Message-ID: Subject: Is large `if' or `case' statement a potential cause of a slow-down? To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Hello, a project (f-sy-h) suffers from what I call a "big-loop". I will rewrite it with a trick soon to check, but I though, why guess that a big loop, `if' or `case' are not easy for Zsh engine, while I can ask. Does someone know a potential marauder script constructs, more difficult than less difficult for Zsh execution? Is big-loop/if/case among them? I recall Bart mentioned that long assignment statements in zcompdump are pretty much slow, IIRC. On this occasion, I would ask when are functions compiled? Before first use, or when defining, or maybe different from these both? Functions in .zwc digest are of course compiled and do not need compilation at all (?). To bump up the stake: when sourcing a compiled script that defines functions, will there be a wordcode for those function definitions and will Zsh use it avoiding compilation? -- Best regards, Sebastian Gniazdowski