]> git.tdb.fi Git - libs/core.git/commit
Optimize memory accesses in Regex::run
authorMikko Rasa <tdb@tdb.fi>
Fri, 29 Dec 2023 20:36:05 +0000 (22:36 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 29 Dec 2023 22:27:10 +0000 (00:27 +0200)
commit5b5776a76b24e26a46d3bacefffa57485cb94abc
treea20f532e6f7f80932f52b60f91304620273bd23c
parentb4d863eee41637abf3a7ed4d5c9ffe0ddb8a9e79
Optimize memory accesses in Regex::run

Use a vector instead of a linked list to store execution contexts, and
store matched groups in contiguous memory as well.
source/strings/regex.cpp
source/strings/regex.h