Skip to content

Long compilation times #4

@Fleli

Description

@Fleli

Compiling relatively short files might take several minutes. Using the compiler's profiling tool, we can verify that compiling a 400-line program took more than 1 minute.

image

It is clear that lexical analysis is a considerable bottleneck. PMax's lexer is built with SwiftLex, which is convenient because it is correct and easy to use. It does, however, not produce very fast lexers.

Since 99,8% of the compilation time is spent in lexical analysis, the auto-generated SwiftLex lexer has to be replaced. This will happen when the language becomes stable (in the lexical sense), since writing a lexer is relatively time-consuming compared to using SwiftLex.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance related issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions