From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8594 invoked by alias); 6 Jun 2016 12:44:04 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21620 Received: (qmail 11602 invoked from network); 6 Jun 2016 12:44:03 -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, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=ijafS0ol/AsF3e+ntZt3JDBKJkeapY5XmuxtwAlk2gg=; b=yIrgQA5ieb7fxri3YBNPhavfcaHBLUBx+pbyUoUHUenQL4cNJgTcAmzK0GFU43VFQt mt8LFLkBHZdMtBjMvYoHPs1J0sytBK7VsAl2Fi2p1wlQvudOiLOE8tWOqD1ZliGdmCu/ Yv6RzjYh2ySxrAcMgt4pusgNGcBaqZZckUF0UwduA4qEO+1uIiU8cD5pS5th0EAQVhQt MBmcopqCq6D+/88OSmvbbYAcQx6TGZHivR6POmn8fnHZQke0tW6EhdGf2FKYeeyGxsPf qZo5e7WcRDWzJPn5UTBAI3EauNMqUOyXTUkRDksAXZDwTwzAYZHhVvM1JjdPxZj+00CM 9RaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=ijafS0ol/AsF3e+ntZt3JDBKJkeapY5XmuxtwAlk2gg=; b=Bg14hKvIxDGVTfWd9Tq1PGmKRzRcgZ4SsIwywTdtmwZLFil2QiO7DDDc7wnwR0Axbe sxN2GqHbD2BrlgfE1+YGkIsHtlBPiCXYIOTGSj8g62Ov7JI3xUwSUjND6S4Iqo480maE Xkguw9TqHgT3WROvuRHZeTdD4YiQHt7PCOfGMewya09EnSjzQ7SU5EriqwHnOA5VIoWr IYYXLFUd64K9emF1RuFdOKaXHb34fktPGNmTCm4bZvWBFdbuyLgj2iBHRcAiw+2IPcOo nKSNlUJsz654cq9CzpHdYJ3ubS36HYrv4mQqXG3II/2lN1a3PqH+FmXL4UnSUjJYRpFv ZhHQ== X-Gm-Message-State: ALyK8tJMQV2VkfeZGIjtDX8Gs6YFJahMEAELfJUgy3/voIeiMy1OxGWjMRyRj4J7hsytrKHGl5FKOizanNT+bg== X-Received: by 10.140.254.213 with SMTP id z204mr16054684qhc.56.1465217039314; Mon, 06 Jun 2016 05:43:59 -0700 (PDT) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Mon, 6 Jun 2016 14:43:39 +0200 Message-ID: Subject: Are completions in some way heavy? To: Zsh Users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I've started a project that basically re-delivers all Zsh completion functi= ons: https://github.com/psprint/allcompletions The point is: with Zplugin it's possible to enable only selected completions (http://psprint.github.io/Zplugins-completion-management/). This should provide speed up, to start with 15 enabled completions, instead of 800, and enable completions at request with simple: zplg cenable "xauth", etc. I missed the fact that compdump is a final optimization. My gains are: compinit runs for 36 ms instead of 112 ms, for almost half of 774 completions disabled. That's a failure but I thought that maybe shell will be much lighter with <100 completions pre-loaded? Maybe situation with compsys isn't that bright because of the number of _* files? How can I reveal effects of much lighter $functions, etc., is it possible? Also, overall, it would be nice that I would collect all mainstream _* patches, and provide the completions for all Zsh versions. Also, maybe other way around would be possible =E2=80=93 rapid iterations on the _* fil= es in allcompletions tree, then rare but high in volume transfer to the mainstream. Maybe Github way of development would result in e.g. more files being compatible with emulate ksh or sh, but I'm not sure if there would be any interest in such quality-pull-up coding. Best regards, Sebastian Gniazdowski