timere icon indicating copy to clipboard operation
timere copied to clipboard

Add optimisation pass for pattern

Open darrenldl opened this issue 3 years ago • 1 comments

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.

darrenldl avatar Jun 01 '21 07:06 darrenldl

Partially addressed: added optimisation pass during construction via Timere.pattern, but no further optimization is done during Timere.union right now.

darrenldl avatar Jun 04 '21 14:06 darrenldl