Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Optimized by doing $var instead of "$var", but does this vary to some extent?
- X-seq: zsh-users 23566
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: Optimized by doing $var instead of "$var", but does this vary to some extent?
- Date: Mon, 6 Aug 2018 09:05:56 -0500
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8Nt5pnqd5aWzah4es2q4r+xB/rjD4M5kcvMOFHb3ixU=; b=XrMjEhyoKLK82J+a9/KCKlN9Xm2bb7Vfkusm40K9VkDLMON5mzzhl8d3LPNCb58hXE ZjldEiN1QNik/z7vlb2GM33bUDGmcdVfGLXrVctjWTObsVkeFp2NCmo0bv/lHP26B8/y i32Jea1vZhnK/pzZhvI4ge21igCoZ22kKPFqOhWWK6ucb8zdYuMNoFRc8t/8IEyBQb+/ Mxq8UBGy9y3xqmUeOVjRcqF3caWeTykw6wDA4CJ2h7aQ6mdLEJTu9wlbds1dVTd9bH0n cJcWKghtI55HkDwmojtytrLYmXSnrnSY4y39FlR+9Lgd7F7EgNHNK2bClGQMccL3Oky1 /D1w==
- In-reply-to: <CAKc7PVCqJ+Ohi2oXbMYekcw_OB4W-3QkQ3mN38kQuOGgJ3+wNA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCqJ+Ohi2oXbMYekcw_OB4W-3QkQ3mN38kQuOGgJ3+wNA@mail.gmail.com>
On Mon, Aug 6, 2018, 7:44 AM Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
wrote:
>
> But maybe some quotings are slowing down and some helping? Does
> someone know Zsh code to hint that sometimes quoting in "$var"-like
> way can help performance?
>
My guess would be that it has something to do with array handling and
memory allocation, so e.g. the sooner you can force an array to become a
string (if eventually it will be treated as one) the better -- but this is
just a guess.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author