timere
timere copied to clipboard
Add optimisation pass for pattern
Rewrite things like ns = [0, 999_999_999]
to ns = []
(wildcard) before passing the pattern to Pattern_resolver.resolve
(or handle it inside Pattern_resolver.resolve
) to remove unnecessary performance penalty - very noticeable now since ns level pattern has been introduced.
Partially addressed: added optimisation pass during construction via Timere.pattern
, but no further optimization is done during Timere.union
right now.