Klebert-Engineering / simfil

The Simple Map Filter Language Interpreter 🌳.
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Improve regex operator performance #87

Closed josephbirkner closed 2 months ago

josephbirkner commented 3 months ago

Currently, the regex for the =~ operator is re-compiled for every evaluation. This should be improved, such that it is compiled only once during the simfil expression compile stage if the regex is constant.