Skip to content

Picker is slow when used with many thousand elements #20136

Closed

Description

  • VSCode Version: 1.9.0
  • OS Version: Windows 7, Windows 10

Steps to Reproduce:

  1. Call showQuickPick() with the items from here
  2. Type "test" letter by letter. You'll see the slow responding quick picker. The code completion box responds much faster working on the same data.

Here a sample how it looks like:
slowquickpick

Activity

  1. bpasero commented on Feb 7, 2017

    @bpasero
    Contributor

    Two reasons: we use the list widget for IntelliSense which is super fast and does not have high update cost when updating the tree. Second, quick open actually limits the number of results to some value, at least for file search.

    CPU trace attached:
    CPU-20170207T183917.cpuprofile.zip

  2. changed the title [-]QuickPicker is much slower than code completion[/-] [+]Picker is slow when used with many thousand elements[/+] on Feb 8, 2017
  3. added
    bug
    on Apr 7, 2017
  4. bpasero commented on Sep 29, 2017

    @bpasero
    Contributor

    The original slowness is no longer there (the one from the tree), when I now test it with 10000 elements the majority of time is spend in QuickOpenModel.compare() where we check if a element is a match for a given search string.

    So bottom line, switching to the list widget as we do in IntelliSense will not yield much better results imho.

  5. added
    quick-pick
    and removed on Nov 15, 2017
  6. removed this from the Backlog milestone on Nov 15, 2017
  7. bpasero commented on Nov 15, 2017

    @bpasero
    Contributor

    Isidor Nikolic (@isidorn) this might be resolved if we switch to using a list for quick pick.

  8. isidorn commented on May 11, 2018

    @isidorn

    Closing as duplicate of using a list for quick pick. Till then this is just a consequence of us using a tree which we do not plan to change afaik
    fyi Christof Marti (@chrmarti)

  9. chrmarti commented on May 11, 2018

    @chrmarti
    Collaborator

    Most time is spent comparing entries.

  10. added
    *out-of-scope
    on Oct 31, 2019
  11. vscodebot commented on Oct 31, 2019

    @vscodebot

    We closed this issue because we don't plan to address it in the foreseeable future. You can find more detailed information about our decision-making process here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

    If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

    Thanks for your understanding and happy coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*out-of-scopebugperfquick-pick

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions