zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: Re: [PATCH/RFC] Completion: Add _composer
Date: Tue, 18 Dec 2018 00:22:16 +0000	[thread overview]
Message-ID: <1545092536.601174.1611972136.2F0901D0@webmail.messagingengine.com> (raw)
In-Reply-To: <1545092371.600233.1611967824.063830D4@webmail.messagingengine.com>

Daniel Shahaf wrote on Tue, 18 Dec 2018 00:19 +0000:
> dana wrote on Mon, 17 Dec 2018 17:09 -0600:
> > * Perhaps most questionable is __composer_packages. I couldn't figure out how
> >   to reliably complete arbitrary package names, because Composer is incredibly
> >   slow to return them, and there are so many that it didn't perform much better
> >   when i tried the usual array-caching mechanism. Even asking Composer about
> >   packages listed in the project JSON files is pretty slow, and not always
> >   accurate. To work around those problems i 'seeded' the function with a bunch
> >   of the most popular packages, and then i used `grep -o` to 'parse' the names
> >   out of the JSON files. Hard-coding package names in feels especially weird,
> >   but...?
> 
> Are you familiar with _store_cache and cache-policy?  It's not clear 
> from the comments
> whether you've tried that.

(And sorry for the fullquote. I thought I'd trimmed it.)

  reply	other threads:[~2018-12-18  0:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-17 23:09 dana
2018-12-18  0:19 ` Daniel Shahaf
2018-12-18  0:22   ` Daniel Shahaf [this message]
2018-12-18  0:46   ` dana
2018-12-19 23:38     ` dana
2018-12-20  0:09       ` dana
2018-12-20  0:21       ` Bart Schaefer
2018-12-20  1:10         ` dana

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1545092536.601174.1611972136.2F0901D0@webmail.messagingengine.com \
    --to=d.s@daniel.shahaf.name \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).