Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Improving zcompdump (Re: A patch with hashtable optimization, which doesn't work)
- X-seq: zsh-workers 41129
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Improving zcompdump (Re: A patch with hashtable optimization, which doesn't work)
- Date: Sat, 20 May 2017 10:08:01 -0700
- 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=0qLtor171QbUcwW7KCRKjUoE+YZFd/tgp/YuQ+WI224=; b=dYxkglxHKecAn+T1A3fxsWaJEhWyWeZdarKlIrXd5ac/Cp1ZyN9W5l8dZtHrNRoN9M EUjx0eUdkU/XG9BXIad7TtJbpaHrwJklO9j240N3RL13O19ei8G+E89po3tlybN891Kr u6pT6vplgZlVzM5xvH68LrUZ7zTYuuL3/r3nJ1+c4ilnxbMzCogphln0uPMzktHIQ0Ch ObqxuG2qYV8+qTp4nvk4SjXALTCYDRsycki89sjHsyuD4H4OqNqB/06BFsPoEV+GR4HM L4eoiRStkOpjZ7xYXP8bDqhIg9kdEEt4GKf9N0USfYPnDAiaoeJHLeoNFL5VqPRsX6CJ X09g==
- In-reply-to: <etPan.591fcee9.140e0f76.6b4c@MacMini.local>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <etPan.591d740e.515f007c.6b4c@MacMini.local> <etPan.591d90ad.1190cde7.6b4c@MacMini.local> <etPan.591fcee9.140e0f76.6b4c@MacMini.local>
On May 20, 7:06am, Sebastian Gniazdowski wrote:
}
} There are no performance gains from keeping the collision list sorted.
Yes, I was going to reply to your earlier message to remark that I would
only expect sorting the collision list to *slow down* insertion ops, not
speed up lookups.
} Tried to optimize mkautofn, to speed up sourcing zcompdump.
How much does zcompdump actually help? Have you compared startup with
and without it?
There's a bunch of stuff in .zcompdump. Have you investigated whether
certain parts of it are slower than others?
One lesson learned with Completion/Base/Utility/_store_cache is that
parsing array assignments is expensive. _store_cache now writes out
the array contents as a here-document and splits with ${(Q)${(z)...}}
to avoid parser overhead. The _comps array is large; maybe there is
a big win to be had by changing the format of the file.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author