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

[Discussion] Add method to force loading Templates into memory #2853

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

h-mayorquin
Copy link
Collaborator

@h-mayorquin h-mayorquin commented May 15, 2024

Discussion PR. @samuelgarcia @alejoe91

Following on #2828 and as alternative to the code in #2436.

With this, if you are in a scenario (I guess like plotting?) where you are going to be making repeated calls to the functions then you can call this function. We can even add an argument to the signature and call this at post_init.

The advantage of this vs loading by default is that the __init__ of the object becomes lighter at the cost of some complexity.

What do you think?

@h-mayorquin h-mayorquin added the core Changes to core module label May 15, 2024
@h-mayorquin h-mayorquin self-assigned this May 15, 2024
@h-mayorquin h-mayorquin changed the title Add method to force laoding Templates into memory Add method to force loading Templates into memory May 15, 2024
@h-mayorquin h-mayorquin changed the title Add method to force loading Templates into memory [Discussion] Add method to force loading Templates into memory May 15, 2024
@samuelgarcia samuelgarcia added this to the 0.101.0 milestone Jun 12, 2024
@samuelgarcia
Copy link
Member

Is it still a draft ?

@h-mayorquin
Copy link
Collaborator Author

I wanted to know what you think guys, I am not sure this si better than what we do now after the hybrid tools big PR which is loading everything from the beginning. That's the reason I put it as a draft.

@h-mayorquin
Copy link
Collaborator Author

I don't think this should go in the next release. It is a minor detail that is discussion more than anything. I would remove the tag.

@alejoe91 alejoe91 removed this from the 0.101.0 milestone Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Changes to core module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants