Skip to content

Performance issue with Golang target #2888

@jlj5aj

Description

@jlj5aj

Hi,

We are running into a performance issue with the Golang target in which parsing takes exponentially longer the more terms are present in the query (the Java target returns immediately). A somewhat minimal example is available here. It includes the grammar files, the JAR that generated the Golang code, as well as CPU/memory benchmarks for the query in v4parser/minimal_test.go.

Does this appear to be an issue in ANTLR's Golang code generation? Is there anything we can do within the grammar itself to work around the issue?

Thanks!
Jason

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