Skip to content

Improvements to loading times of Python Extension #2853

@DonJayamanne

Description

@DonJayamanne

Following are some changes that can be made to improve the load times of the python extension:

Changes required

Long Term Changes:

  • Create perf tests to measure and compare code load times of extension #3022 Create more perf tests to measure and compare load times of extension, in particular the following times:
    • codeLoadingTime
    • activateCallTime
    • activateResolvedTime
      We have tests today that do something similar, we need to ensure they are more granular. (compare against release and dev versions of extension - as done today).
  • Change interpreters list into an Observable list #3023 Observable list of interpreters (currently we need any, subsribe, filter, and similar capabitlies of interpreters, but in a non-blocking way, thats exactly that Observable lists provide - RxJs).
    • Short term solution could be to add new code for perf improvements
    • E.g. add a predicate to IInterpreterService.getInterpreters, add methods IInterpreterService.hasAny, IInterpreterService.onChange()

@Microsoft/pvsc-team /cc

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebtCovers everything internal: CI, testing, refactoring of the codebase, etc.importantIssue identified as high-prioritymetaIssue that is tracking an overall projectneeds proposalNeed to make some design decisions

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions