Skip to content
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

Don't clone the underlying path when cloning contexts for performance reasons #630

Closed
wants to merge 5 commits into from

Conversation

PCManticore
Copy link
Contributor

WIP PR for finding what caused the performance slowdown of pylint-dev/pylint#2198

We should not copy the inference path all the time, as that causes serious
performance regressions on large libraries and on large inference paths. Unfortunately
it's not obvious in which code paths we have to branch out and in which we should not.
This commit introduces a flag, `branch_path`, which is used in inference to specify the
points where a branching out is needed by creating a copy of the inference path of an
inference context.
@PCManticore PCManticore deleted the revert-perf-affecting-changes branch January 13, 2019 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant