Skip to content

regex redux #121

Open
Open

Description

@yakra

Was the reason regexes were so unbearably slow because I was continually creating & destroying regex objects, hundreds of thousands of times over?

What if I were to create const regexes at the beginning of the program, and then refer to those as needed?

Datacheck functions hand-coded for a particular purpose are probably still faster, but nonetheless...

Activity

  1. yakra commented on Apr 30, 2022

    @yakra
    OwnerAuthor

    What if I were to create const regexes at the beginning of the program, and then refer to those as needed?

    compile-time regular expressions via constexpr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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