Skip to content

Performance issue of defined expressions #350

@BernhardtD

Description

@BernhardtD

I'm working on a comparison of different regex engines including your crate. I discovered some expressions with a slow execution time compared to other engines. I used the test tool from rust-leipzig/regex-performance to measure the performance on a given input file.

The following chart tries to give an overview of the results:
rust_regex

The affected expressions are:

  1. [a-q][^u-z]{13}x
  2. ∞|✓
  3. (?i)Twain

Are there any issues or limitation regarding the given expressions known?

Additionally I attached my results:
results.zip

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