python-fastjsonschema
python-fastjsonschema copied to clipboard
are the compiled validation functions cached?
From the Python docs for re.compile():
Note The compiled versions of the most recent patterns passed to re.match(),
re.search() or re.compile() are cached, so programs that use only a few regular
expressions at a time needn’t worry about compiling regular expressions.
Is there such a mechanism in fastjsonschema?
No, it is not in place. But it could be an interesting feature. Maybe in future. :-)
Actually, I was wrong. Of course regexps are compiled.