From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28923 invoked from network); 30 Nov 2021 12:31:08 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 30 Nov 2021 12:31:08 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1638275468; b=ZqjXwVCfs3Bsn81vAoFBe28ep6HIdSfXBozsGdimTiksIsjulNGfMa7yNgf09glyaAeRHRua0Z 23klHVXBna4GxmsIgHaEceT//FJst4RIWgqI9w2m9VJakt861U2RWL1k6FILXN8fGdlzmZR7Zo 6UdOgCZxq9wvQK1sqwD/WFl5jMT996pQdNIZK9kSnvDZx9Lxrh1TmhdoqdcP9NjiXVqTsKNVQn 4PzDEPr2nEMqUecAAKyadEs6wtrRUF3Ecti/bjGt4E1fqrM58zEKQp8EpU7s1uUqMbkwxgaH/B BgaAL57Saax2xIKNhDbUo/UbCN9jRxryX2rbH9s8X7xS9A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-qk1-f175.google.com) smtp.remote-ip=209.85.222.175; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1638275468; bh=N3jx3tasAf40kpYVjryxUfIGBsjrnBPCYZ4oAdjnu6A=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=V+o+UNeBY+CXxTQw8G79PXbQgsRCbtBUEx9nGnOcOIwHltUUXxhQTN/Fj0x0NMB9usN8z5iDs5 A1RA6pVWxxMxkGhcvIg7RUA4wdqIpzeweYn4Q+NiSqJdymup0b5n3Heo+9ltE+s5YoCium+bpn NaFkO3kqNUbWj+MzZ3H3/dFx9+9R4PeUfaQvhLVZYKfkxaA1s1/3vSGLi27VaHd6f3xH3uzz3s gzRIVHuG/AmQFr/bB9MloUT01VrHYfewL0wWk+84JwaPhtg8qtfJBYrLy2X/T8+iSh1usxGKV7 tI22Tl8fk3keCfMEdU3KEwqHfcr1K9BbNjdSc9ijCmgoXg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=N3jx3tasAf40kpYVjryxUfIGBsjrnBPCYZ4oAdjnu6A=; b=sLPkBXwDycPi+z/QMepCdolyHQ e0Fg9LDhBKOYCJ4IhPsXN1jGQMIrC4NfaRp0GRWx0ZyslXc1Y3y6V1e3utc3LphJZGi5kM550xCZ1 ULrHIXMf3ASTa+ZdXFV5+IkALzb/xdOhS9bs4hAV/7gypR6G8MAVNUamkW+4BuNSlqJ4/oexPje1P YW6cpaP62wOtDljCfTka9L6PS6kfbxgFNJcvx3f04fUZt1lPUn01D56mJhiiiEBICJgxrFbsh1dNn /yxbsuwZOglS9H7TfQ5jrXlpDSGjHD/wLBy42G/5VM8VbrMMrnNTDxKutZKPjHnlJ7E+cEH2LX94e D39fRdeQ==; Received: from authenticated user by zero.zsh.org with local id 1ms2Hr-0000fZ-1H; Tue, 30 Nov 2021 12:31:07 +0000 Authentication-Results: zsh.org; iprev=pass (mail-qk1-f175.google.com) smtp.remote-ip=209.85.222.175; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-qk1-f175.google.com ([209.85.222.175]:33681) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ms2HJ-000Pxn-1O; Tue, 30 Nov 2021 12:30:33 +0000 Received: by mail-qk1-f175.google.com with SMTP id de30so26560309qkb.0 for ; Tue, 30 Nov 2021 04:30:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N3jx3tasAf40kpYVjryxUfIGBsjrnBPCYZ4oAdjnu6A=; b=q7v9FJ+ZABhmG9BqMMjQiYt6IKtpxQdB2EeEbIMksXm8nAO2yDcla0+Mz8QQFzHvBK tpkypm2zOXCp84VPnW1Xy90ws90Q1S6LnPuyxfUFM5WIBWzCf1XJ72BfAnamry4P5PF/ +xXG3QrlQhUqL9fwaXqxzWJWkm+6HKmH8hmqpeMpWCsRUqSxSUs7Uy+hEUeWtKzU9Gt1 PU8Nq+FaIXej2NhKfeh3/lL7FwYM86eAt/2zqoD56pB9OwIz6uMPSwjiQcuD+L9Zy7a1 hTNTSowSENdgtAqiR9OBsWw0uijrWUahQ2cL68d6jNxm8kYaYJnzAAl3kuh76hSRMfdf /8Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N3jx3tasAf40kpYVjryxUfIGBsjrnBPCYZ4oAdjnu6A=; b=pRe6PhoXMxhArliokSCj6Zf6mcE4IRlpbLdXKr6OrGDQCsgSsUOHU1kGmnwkPWOv1s rS+6uApnm1rzvjCKQGQbXMmMaJRAgtRsI4QGB7IKEUfwslI3Y0ivd4/YoaXpGy+Zocnt gWTmJEunNb8PDmEFUr5x8tb3XOMeqT4QCiiRQA5qyV5UMpn3MeDWoHy/shSBUJn/aH0L +zBYpwVeCsRp5zp4j9DLYozz9/Wss7knGdcMFOEkoRRGywHrfT0ndMF72aBQHr8JwM+P yVAZw7GEHE1V8iqvdDLj6f3j/QP3FkJu0JVEojCyv7PnjJgPf2xys1CLSqbtSkjQwhqi +5vg== X-Gm-Message-State: AOAM530DgBJUHNL44Zh2CNXOc1kuzcvPSnv4zWX0rsX6fixx8so4Ch8g T8t4mvtWuhmFpRuaVaW9NUrLthzVRIgnsUWk4LjkqG+N X-Google-Smtp-Source: ABdhPJwQo7gxVcE2sfv8qFeoDYtnjVqTWUJE8uucdW+wsVZCyf30A5FCXxChH8kFZQxKweEYtBa0ULEQ/wzmU3SqIT8= X-Received: by 2002:a37:9ec7:: with SMTP id h190mr36197916qke.700.1638275431881; Tue, 30 Nov 2021 04:30:31 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Roman Perepelitsa Date: Tue, 30 Nov 2021 13:30:18 +0100 Message-ID: Subject: Re: Shell startup, aliases vs. functions vs. autoloadable functions, and zcompile benefits To: Zach Riggle Cc: Mikael Magnusson , Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 27403 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Tue, Nov 30, 2021 at 12:49 PM Zach Riggle wrote: > > > FWIW, I zcompile my own rc files > > What is the optimal way to compile a huge set of them? Most of the zsh files you are using are *installed* rather than modified by yourself. You can zcompile them when you install/update them. E.g., you have some code that installs/updates prezto. Invoke zcompile in there. There are also zsh startup files that you modify manually every now and then (.zshrc, etc.). Compiling these files is harder and is more likely to cause issues. On the other hand, the benefits of compiling them are tiny, simply because those files are tiny. Once again, you can manually zcompile different things and check whether you notice any difference. If you don't, there is no need to invest in zcompiling. If first_prompt_lag of your shell is 600ms, zcompiling won't have noticeable effects. You'll need to optimize other things first for zcompiling to matter. Roman.