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

MNT: create a "core" module for shared functionality #32

Merged
merged 2 commits into from
Sep 12, 2023

Conversation

ntessore
Copy link
Contributor

@ntessore ntessore commented Sep 12, 2023

Changes the package layout to include a heracles.core module for shared functionality (e.g. TocDict, #30).

This improves import performance a little, since not all imports from heracles.util are always needed (timing-related functionality).

Where heracles.util functionality is conditionally used, the import is moved into the function definition, instead of being a global import.

Reviewed-by: Patrick Roddy [email protected]

@ntessore ntessore requested a review from paddyroddy September 12, 2023 10:47
Copy link
Member

@paddyroddy paddyroddy left a comment

Choose a reason for hiding this comment

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

Nice idea, have never been a fan of util

@ntessore ntessore merged commit 6e1d1b7 into main Sep 12, 2023
7 checks passed
@ntessore ntessore deleted the pr/add-core-module branch September 12, 2023 13:20
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.

2 participants