Skip to content

Commit

Permalink
Add docstring to emphasise laziness
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Dec 26, 2020
1 parent 8e55757 commit 2a25452
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/pip/_internal/resolution/resolvelib/found_candidates.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
"""Utilities to lazily create and visit candidates found.
Creating and visiting a candidate is a *very* costly operation. It involves
fetching, extracting, potentially building modules from source, and verifying
distribution metadata. It is therefore crucial for performance to keep
everything here lazy all the way down, so we only touch candidates that we
absolutely need, and not "download the world" when we only need one version of
something.
"""

import functools
import itertools

Expand Down

0 comments on commit 2a25452

Please sign in to comment.