Skip to content

Parsing is slow #79

@uncomputable

Description

@uncomputable

The PEST parser struggles with series of open brackets that are not closed. This means that the fuzzer runs slow units that take up to hundreds of seconds to parse.

fn n(){ { (s,(( (Ns,(s,(x,(((s,((s,(s,(s,(x,(( {5
fn fnnfn(MMet:(((sssss,((((((sssss,ssssss,ss,((((((sssss,ss,((((((sssss,ssssss,ss,((((((sssss,ssssss,((((((sssss,sssssssss,(((((((sssss,sssssssss,(((((ssss,((((((sssss,sssssssss,(((((((sssss,ssss,((((((sssss,ss,((((((sssss,ssssss,ss,((((((sssss,ssssss,((((((sssss,sssssssss,(((((((sssss,sssssssss,(((((ssss,((((((sssss,sssssssss,(((((((sssss,sssssssssssss,(((((((((((u|(
fn nf224(jet:J ){{{{{{{{{{{{ {     {{ {  { {   {{ 

Maybe the grammar file that I wrote contains anti patterns that needlessly slow down the parser. So far I haven't found a resource on these, but I will keep looking and I will try to rewrite the file.

It could also be that the PEST parser is inherently slow. In this case, we will have to move to a different parser. However, I will hold off on such a massive change until more important work has been done.

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