summaryrefslogtreecommitdiff
path: root/astroid/protocols.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-10-10 14:36:44 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2018-10-10 14:36:50 +0200
commit7513622d90eecf73f6259b310cab33d665e91ced (patch)
tree7698daa0c4374e7d631cc88cc62140d112f8edb5 /astroid/protocols.py
parente4c0d85f2fd6c87f4f763e93e7973c24ae98006b (diff)
downloadastroid-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