-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance issue #528
Comments
bisected. last known good commit (no errors and no performance regression) is 7a73ef4.
|
reverting these 4 commits fixed performance regression. No pytest errors (421 passed, 7 skipped in 16.91s), yes
|
Thanks for tracking this down, it's an interesting issue. I agree that it's likely an issue with the Product type logic. I'll have to do some more investigation to see what the exact issue is. Is it possible to share you top file with the circuit definition so I can take a look at it? Or at least the types that are used? It may have to do with nested types (my guess looking at the profile log, it seems that it's spending a lot of time the inspect module, and adt_meta and tuple.py). It may be that we aren't cacheing when we should be so it's calling |
Ok, I found a minimal repro code.
|
I'm observing performance regression on master. master takes 196 seconds to compile, although a bit old hwtypes2 takes 3 seconds. will bisect later, or create a minimal repro code. probably related to namedtuple vs Product.
Versions
pip3 install -e
. with github mastercompile.py
python3 -m cProfile compile.py with a bit old hwtypes2
CLK
argument in sequential __call__ #524result
python3 -m cProfile compile.py with master
CLK
argument in sequential __call__ #524 on top of masterresult
The text was updated successfully, but these errors were encountered: