boostorg / boostorg/regex

match with regex_constants::match_any bug

Open
#251 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
119
Forks
113
PR merge metrics
No merged PRs in 30d

Description

![Image](https://github.com/user-attachments/assets/abee81e0-f3c8-4d85-860a-47cda93b06b6)

In multiple overloads of regex_match, regex_constants::match_any is enabled by default, which can cause a drastic drop in matching performance (by a factor of tens to hundreds). This appears to be a bug in either the implementation or the way the function is invoked.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the regex_match overloads and inspect how regex_constants::match_any is enabled by default. Reproduce the reported performance difference, then determine whether the issue is in the implementation or how the function is invoked. Done means the cause is confirmed and matching performance no longer suffers the reported regression.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.