2022-11-13 20:40:39 +00:00
|
|
|
use squozen::prepare_pattern::prepare_pattern_raw;
|
2022-11-11 16:31:22 +00:00
|
|
|
|
|
|
|
const COUNT: usize = 5 * 1000 * 1000 * 100;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let mut end = COUNT;
|
2022-11-13 20:40:39 +00:00
|
|
|
let mut dest = Vec::<u8>::with_capacity(100);
|
2022-11-11 16:31:22 +00:00
|
|
|
while end > 0 {
|
2022-11-13 20:40:39 +00:00
|
|
|
dest.clear();
|
|
|
|
prepare_pattern_raw(b"/foo/bar/whatever[0-9]*", &mut dest);
|
2022-11-11 16:31:22 +00:00
|
|
|
end = end - 1;
|
|
|
|
}
|
|
|
|
}
|