Skip to content

Spike: Investigate using webworker for Python discovery #21755

Closed

Description

@karrtikr

Activity

  1. added
    feature-requestRequest for new features or functionality
    area-environmentsFeatures relating to handling interpreter environments
    needs spikeLabel for issues that need investigation before they can be worked on.
    on Aug 4, 2023
  2. Frnchy1 commented on Aug 4, 2023

    @Frnchy1
  3. karrtikr commented on Sep 14, 2023

    @karrtikr
    Author

    Spike

    Discovery = locator + watcher + resolver

    vscode module is not available to use in worker threads, so we have to refactor them out. APIs we currently use:

    • Locator requires workspace.workspaceFolders and workspace.onDidChangeWorkspaceFolders
    • Watcher requires workspace.createFileSystemWatcher, EventEmitter, RelativePattern
    • Uri itself
    • ...maybe more

    Resolver & locator part are expensive, watcher can be outside. The issue right now is watcher is part of the locator, locator gives out existing environment locations and watcher returns whether there's an new env in those locations.

  4. karrtikr commented on Sep 21, 2023

    @karrtikr
    Author

    Spawning conda or "REG" binary (windows registry) can block the main thread for a few seconds:
    image

  5. karrtikr commented on Sep 21, 2023

    @karrtikr
    Author
  6. karrtikr commented on Oct 3, 2023

    @karrtikr
    Author

    Spike results: #22146 (comment)

  7. removed
    needs spikeLabel for issues that need investigation before they can be worked on.
    on Oct 3, 2023
  8. locked as resolved and limited conversation to collaborators on Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-environmentsFeatures relating to handling interpreter environmentsfeature-requestRequest for new features or functionalityverifiedVerification succeeded

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions