Uses std::sync::LazyLock to Compile Regexes Only Once
Description:
This PR introduces std::sync::LazyLock to ensure that our regex patterns are compiled only once, improving performance by reducing unnecessary recompilation.
Changes:
Replaced existing regex compilation with LazyLock for efficient lazy initialization.
This change enhances the efficiency of our regex usage. Please review and provide any feedback. Thank you!
Uses
std::sync::LazyLock
to Compile Regexes Only OnceDescription:
This PR introduces
std::sync::LazyLock
to ensure that our regex patterns are compiled only once, improving performance by reducing unnecessary recompilation.Changes:
LazyLock
for efficient lazy initialization.This change enhances the efficiency of our regex usage. Please review and provide any feedback. Thank you!