You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.10, and I used 1.7 before. Issue seems to be mainly be due the rewrite in 1.9
Describe the bug at a high level.
After updating to regex 1.10 I am seeing greatly increased memory usage (captured using the dhat crate. see example below). In particular part of the issue seems to be due to the use of capture groups in the regex. These captures only serve to group the regex so they could (and should) be non-capturing groups and I have fixed this on my end, however since captures do not seem to matter on 1.7 I guess there may be a missed optimization here? (#1059 comes to mind).
(The regex in the example has been altered but it remains the same in spirit and exhibits the same memory increase)
What are the steps to reproduce the behavior?
The following code can be used to reproduce the behavior by using dhat to track memory and changing the regex version.
What version of regex are you using?
1.10, and I used 1.7 before. Issue seems to be mainly be due the rewrite in 1.9
Describe the bug at a high level.
After updating to regex 1.10 I am seeing greatly increased memory usage (captured using the dhat crate. see example below). In particular part of the issue seems to be due to the use of capture groups in the regex. These captures only serve to group the regex so they could (and should) be non-capturing groups and I have fixed this on my end, however since captures do not seem to matter on 1.7 I guess there may be a missed optimization here? (#1059 comes to mind).
(The regex in the example has been altered but it remains the same in spirit and exhibits the same memory increase)
What are the steps to reproduce the behavior?
The following code can be used to reproduce the behavior by using dhat to track memory and changing the regex version.
Memory stats from running the example
Most of the stats are the same, but we can see a 5x increase in memory when using capturing groups in 1.10.
https://docs.rs/dhat/latest/dhat/struct.HeapStats.html
1.7.3
1.10.2
The text was updated successfully, but these errors were encountered: