summaryrefslogtreecommitdiffstats
path: root/Cargo.lock
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2023-09-28 13:19:57 -0400
committerAndrew Gallant <jamslam@gmail.com>2023-10-09 20:29:52 -0400
commitbe9e308999b94aba4be0406dafbd8aa6201e326a (patch)
tree8b656066a64c18124f73314640ded46d8d27ad13 /Cargo.lock
parentd53b7310ee1424a292228f7e8986fa9306f22a7f (diff)
globset: use a Pool from regex-automata
In the time before, we just used a RegexSet from the regex crate. That allocated unconditionally, so there was nothing we could do and it didn't expose any APIs to reuse that memory. But now that we're using the lower level regex-automata, we can reuse a PatternSet. Ideally we would just provide a way for the caller to build a PatternSet (perhaps via an opaque type) so that we don't have to shuffle data into a PatternSet and then back into the caller's `Vec<usize>`. But this at least avoids allocating for every search.
Diffstat (limited to 'Cargo.lock')
0 files changed, 0 insertions, 0 deletions