diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2018-10-10 14:36:44 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-10-10 14:36:50 +0200 |
commit | 7513622d90eecf73f6259b310cab33d665e91ced (patch) | |
tree | 7698daa0c4374e7d631cc88cc62140d112f8edb5 /astroid/protocols.py | |
parent | e4c0d85f2fd6c87f4f763e93e7973c24ae98006b (diff) | |
download | astroid-git-7513622d90eecf73f6259b310cab33d665e91ced.tar.gz |
Cache the result of get_assign_nodes
The result is usually static, but we're hitting this function quite
a lot for big projects such as pandas. This change is a matter of compromising
between the amount of memory astroid needs for analysis (e.g. storing the
results in memory) vs the wasted CPU time in calling the same
function over and over.
Diffstat (limited to 'astroid/protocols.py')
0 files changed, 0 insertions, 0 deletions