You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When running usaddress on a vast amount of addresses (> 200M), the fact that each regex is being parsed / compiled on every method call becomes quite costly
Describe the solution you'd like
Initialize all regex once and refer to those in calls to match, sub, etc.
Describe alternatives you've considered
None
Additional context
I don't think it is relevant, but we are using usaddress in a spark environment
Also if you agree that it is worth fixing, I can look into providing a fix
Activity
gaiarajan commentedon Aug 12, 2026
Opened a PR here!