Skip to content

doc-get-definition-by-id can be improved #192

Description

@dannypsnl

doc-get-definition-by-id is prepared for jump to definition in the other file, when we give xxx.rkt to doc-get-definition-by-id which means we cannot find a definition in the current file, instead, we find it's located at xxx.rkt so we need to jump to there.

In doc-get-definition-by-id we create an isolated syntax check (super expensive operation), consider the followings scenario this is a waste

  1. We had open xxx.rkt and never modify it, then lookup Doc-trace of xxx.rkt can complete this task without a new syntax check
  2. If we never open xxx.rkt, but then because we will open xxx.rkt, we will do syntax check again rather than reuse the valid syntax check we just did

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions