mirror of
https://github.com/m-labs/artiq.git
synced 2025-01-08 01:53:34 +08:00
d8c81d6d05
Interestingly enough, these actually seem to give a measurable speedup (if small – about 1% improvement out of 6s whole-program compile-time in one particular test case). The previous implementation of is_mono() had also interesting behaviour if `name` wasn't given; it would test only for the presence of any keys specified via keyword arguments, disregarding their values. Looking at uses across the current ARTIQ codebase, I could neither find a case where this would have actually been triggered, nor any rationale for it. With the short-circuited implementation from this commit, is_mono() now checks name/all of params against any specified conditions. |
||
---|---|---|
.. | ||
algorithms | ||
analyses | ||
testbench | ||
transforms | ||
validators | ||
__init__.py | ||
asttyped.py | ||
builtins.py | ||
embedding.py | ||
import_cache.py | ||
iodelay.py | ||
ir.py | ||
module.py | ||
prelude.py | ||
targets.py | ||
types.py |