SchrodingersGat / KiBoM

Configurable BoM generation tool for KiCad EDA (http://kicad.org/)
MIT License
352 stars 95 forks source link

Optimize the regex used to match component values #110

Closed set-soft closed 3 years ago

set-soft commented 3 years ago

The regex used in units.py is huge, applied to all components many times and compiled every time.

This patch uses a global variable to compile it once and reuse the compiled regex.

SchrodingersGat commented 3 years ago

Please fix the conflicts here and I'll merge, thanks

set-soft commented 3 years ago

Done, now referenced to your current HEAD commit.

SchrodingersGat commented 3 years ago

Thanks!