Don't compile regex at every function call.
Use `SyncOnceCell` to only compile it once. I believe this still adds some kind of locking mechanism?
This commit is contained in:
parent
285fc7d704
commit
f4a7149f49
2 changed files with 10 additions and 1 deletions
|
@ -27,6 +27,7 @@ Rust MIR: a lowered representation of Rust.
|
|||
#![feature(trait_alias)]
|
||||
#![feature(option_expect_none)]
|
||||
#![feature(or_patterns)]
|
||||
#![feature(once_cell)]
|
||||
#![recursion_limit = "256"]
|
||||
|
||||
#[macro_use]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue