use squozen::prepare_pattern::prepare_pattern_raw; const COUNT: usize = 5 * 1000 * 1000 * 100; fn main() { let mut end = COUNT; let mut dest = Vec::::with_capacity(100); while end > 0 { dest.clear(); prepare_pattern_raw(b"/foo/bar/whatever[0-9]*", &mut dest); end = end - 1; } }