Symphonia icon indicating copy to clipboard operation
Symphonia copied to clipboard

Replace lazy_static with phf and once_cell

Open GnomedDev opened this issue 2 years ago • 0 comments

  • Reduces macro magic in the case of replacing with once_cell::sync::Lazy and removes a lot of lines due to no indentation required.
  • Improves runtime performance in the case of replacing lazy_static'd HashMap with phf::Map by creating the maps at compile time, avoiding even one allocation at runtime

GnomedDev avatar Jul 18 '22 12:07 GnomedDev