jamesaoverton / cmi-pb-terminology

CMI-PB Controlled Terminology
0 stars 0 forks source link

Improve performance by "compiling" conditions just once #44

Closed jamesaoverton closed 2 years ago

jamesaoverton commented 2 years ago

Currently the validate_condition() function runs Lark or compiles a regex at least once per cell. It should be more efficient to "compile" the condition just once into a function with just the value as the argument. This should be possible when the config is built.