PERF: Lazily load all package exports - #2456
Open
Richard Lundeen (rlundeen2) wants to merge 8 commits into
Open
Conversation
Defer model re-exports until first access and add a repository-wide lazy package contract test with a ratcheting eager-package exception list. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: d2bd1e1d-bef9-454a-b04a-be5fde48fcab
Exercise model package dir hooks and export resolution in the coverage process so diff coverage includes the PEP 562 contract. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: d2bd1e1d-bef9-454a-b04a-be5fde48fcab
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Richard Lundeen (rlundeen2)
force-pushed
the
rlundeen2-all-package-lazy-imports
branch
from
August 21, 2026 17:15
c0ee34e to
ed6a298
Compare
Roman Lutz (romanlutz)
approved these changes
Aug 22, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: ecd050f4-5e40-4f24-9d8f-8bf99736b9cd
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: ecd050f4-5e40-4f24-9d8f-8bf99736b9cd
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: ecd050f4-5e40-4f24-9d8f-8bf99736b9cd
Copilot-Session: ecd050f4-5e40-4f24-9d8f-8bf99736b9cd
Richard Lundeen (rlundeen2)
enabled auto-merge
August 22, 2026 04:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is the second PR in a two-PR change stack. It is stacked on #2455; both head branches are in
rlundeen2/PyRITand target upstreammain.pyrit/**/__init__.pypackages to the shared PEP 562 lazy-export contractshow_versionscompatibilityCold start performance
import pyrit.memoryimport pyrit.datasetsEach result is the median of seven fresh-process runs.