kworkflow / patch-hub

patch-hub is a TUI that streamlines the interaction of Linux developers with patches archived on lore.kernel.org
GNU General Public License v2.0
7 stars 6 forks source link

Uses std::sync::LazyLock to compile the regexes only once #85

Closed auyer closed 1 day ago

auyer commented 6 days ago

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:

This change enhances the efficiency of our regex usage. Please review and provide any feedback. Thank you!

davidbtadokoro commented 1 day ago

Hey @auyer, cleanly applied! I just added context to the commit message. Thank you so much, and change merged into the unstable branch :+1: