Skip to content

Yieldable matching API #730

@NWilson

Description

@NWilson

The Erlang regex support is based on PCRE2, and they have patched their copy of PCRE2 to allow matching to yield after a fixed amount of work is done, and then resume it later. This enables them to keep the main thread responsive and allocate time fairly to cooperatively-multitasking routines.

This is a noble goal. We should incorporate their support, ensuring that we make the API adequately general-purpose for other users. We also must test it thoroughly before it can be an official upstream feature.

See discussion: https://groups.google.com/g/pcre2-dev/c/vdc2bSvRUuA

Erlang's fork of PCRE2, with changes on a branch: https://github.com/frazze-jobb/pcre2

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions