Skip to content

Consider speeding up compile times by caching ASTs #1133

Open
@jtenner

Description

@jtenner

When using the compiler to compile multiple test suites in as-pect, there are many shared common files that need to be re-parsed and an AST needs to be generated every single time the software calls asc.main().

I was curious if there was a way to cache the entire AST of a given file instead of running each file through the parser every single time a module needs to compile?

I remember that @willemneal managed to do something like this and it sped up as-pect cli run-times by a good three seconds over the course of 10 compilations on my local PC. (Baseline was about 10 seconds.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions