You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m generating about 1000 test cases, a few hundred instructions each. This process takes 195 seconds on my PC. According to cProfile 64% of the time is spent in deepcopy, which is quite a bit. Below is a full call graph generated with gprof2dot:
Apparently each of the two steps (ABIFunction, EncodedFunction) involved deepcopy()ies all instruction objects, which are quite heavy. If deepcopy() could be – somehow – avoided the whole process would be alot faster.
The text was updated successfully, but these errors were encountered:
deepcopy in ABIFunction is needed to support finalizing the same function several times for different ABIs. If you don't use this feature, you can locally replace it with simple copy. deepcopy in EncodedFunction is likely redundant, I'd need to take a closer look.
I’m generating about 1000 test cases, a few hundred instructions each. This process takes 195 seconds on my PC. According to cProfile 64% of the time is spent in deepcopy, which is quite a bit. Below is a full call graph generated with gprof2dot:
Apparently each of the two steps (ABIFunction, EncodedFunction) involved deepcopy()ies all instruction objects, which are quite heavy. If deepcopy() could be – somehow – avoided the whole process would be alot faster.
The text was updated successfully, but these errors were encountered: