Skip to content

Ensure there are no unncessary whole-file traversals or decodes/encodes #23

@JukkaL

Description

@JukkaL

Before we freeze the public API, ensure there are no unnecessary performance bottlenecks, such as having to scan through the entire file an extra time, or having to decode/encode the whole file without a good reason. Some of these might impact the public API.

Here are some things that come to mind:

  • Do we read the file in both Python and Rust? Can we only do it in Rust? It would be great to only have to read the file once.
  • Do we need to scan the whole file an extra time to find # mypy: comments (for flags)? Can we integrate this into the type comment parsing pass?
  • Ensure we can avoid semantic analysis pass 1 (tracked separately in Implement all of semantic analysis pass 1 in the extension #11)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions