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

CLI decorator: only import ocrd_network when needed #1289

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

bertsky
Copy link
Collaborator

@bertsky bertsky commented Oct 10, 2024

Avoids about 17 MB RSS of unnecessary networking imports when not using the networking subcommands on the CLI.

Copy link
Member

@kba kba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import below module top-level is normally frowned upon but in this case it makes sense, no need to pull all of that in if it is not used. LGTM

@kba kba merged commit 539f5d7 into master Oct 10, 2024
22 checks passed
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.

3 participants