Merge pull request #18733 from aconsroe-hpe/regex-allocations-3-pretty
Regex allocation and comm reduction
While we landed better support for multilocale regex by implementing
chpl__serialize in #18678, we weren't actually packing the pattern string/bytes inline. This PR fixes that and results in reduced comm counts when the pattern is small enough to fit inside the string/bytes own inline buffer.
We can now also turn many of the heap allocations into stack allocations because the execution of the matching will now always happen on
Tests cover comm counts for serialization, allocation counts for local
matches (where we expect to see our reduced allocations), and a general test of the new behavior for local+remote regexes.
[x] Full paratest pass