Closed eagleflo closed 3 years ago
Currently dictionary initialization happens on each lookup. That's not ideal. Unfortunately static variables come with a lot of restrictions in Rust; heap allocation being forbidden for one.
static
It looks like https://docs.rs/lazy_static/1.4.0/lazy_static/ might offer a way to sidestep that issue.
Currently dictionary initialization happens on each lookup. That's not ideal. Unfortunately
static
variables come with a lot of restrictions in Rust; heap allocation being forbidden for one.It looks like https://docs.rs/lazy_static/1.4.0/lazy_static/ might offer a way to sidestep that issue.