diff options
author | Rick Altherr <kc8apf@kc8apf.net> | 2016-01-31 09:07:21 -0800 |
---|---|---|
committer | Rick Altherr <kc8apf@kc8apf.net> | 2016-01-31 09:20:16 -0800 |
commit | 3c48de8e218ff70f4b5f8e42a6794a48354ea062 (patch) | |
tree | 8e81ca35b190f2ed0f1f3e9e65caac6660527fc6 /kernel/hashlib.h | |
parent | 0265d7b1006e0946eb4635d73a6d49d31b3e4235 (diff) | |
download | yosys-3c48de8e218ff70f4b5f8e42a6794a48354ea062.tar.gz yosys-3c48de8e218ff70f4b5f8e42a6794a48354ea062.tar.bz2 yosys-3c48de8e218ff70f4b5f8e42a6794a48354ea062.zip |
rtlil: Improve performance of SigSpec::extract(SigSpec, SigSpec*)
Converting to a pool<SigBit> is fairly expensive due to inserts somewhat
frequently causing rehashing. Instead, walk through the pattern SigSpec
directly on a chunk-by-chunk basis and apply it to this SigSpec's
individual bits. Using chunks for the pattern minimizes the number of
iterations in the outer loop.
Diffstat (limited to 'kernel/hashlib.h')
0 files changed, 0 insertions, 0 deletions