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

avoid needless use of deepcopy, speed up support for templating in easyconfigs #1897

Merged
merged 18 commits into from
Sep 6, 2016

Conversation

boegel
Copy link
Member

@boegel boegel commented Sep 5, 2016

These changes are motivated by profiing the easyconfigs test suite, which was starting to take prohibitively long (> 10m).

Together with easybuilders/easybuild-easyconfigs#3520, this speeds up the easyconfigs test suite by a factor 3x...

@boegel boegel added this to the v2.9.0 milestone Sep 5, 2016
@@ -323,7 +325,7 @@ def __init__(self, path, extra_options=None, build_specs=None, validate=True, hi

# list of *all* dependencies, including hidden/build deps & toolchain, but excluding filtered deps
self.all_dependencies = copy.deepcopy(self.dependencies())
if self.toolchain.name != DUMMY_TOOLCHAIN_NAME:
if self['toolchain']['name'] != DUMMY_TOOLCHAIN_NAME:
Copy link
Member

Choose a reason for hiding this comment

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

is this a pure style change?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, it's avoiding that a Toolchain instance is created already at this point, which is not needed at all for dummy toolchains here...

@boegel
Copy link
Member Author

boegel commented Sep 6, 2016

Thanks for the review @wpoely86!

@boegel boegel merged commit b36aed8 into easybuilders:develop Sep 6, 2016
@boegel boegel deleted the speedup branch September 6, 2016 06:58
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