Skip to content

Unnecessary resolve on didOpen and didSave #203

Closed

Description

@renkun-ken

Resolving packages is a major part of parse task that draws down the performance.

If the document uses some big packages that have many dependencies (e.g. tidyverse) or has long loading time, the resolving time (including starting a child R process and attaching the packages used in document) would be significant (more than 3s for tidyverse only).

It looks like resolving packages are completely unnecessary whenever there is no new package appearing in the document other than workspace has loaded (workspace$loaded_packages). Therefore, we could resolve only new packages when there is any, and avoid resolving packages whenever unnecessary.

Activity

  1. changed the title [-]Unnecessary resolve on didOpen and didClose[/-] [+]Unnecessary resolve on didOpen and didSave[/+] on Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions