Skip to content

fix: Load globals that are subclasses or instances of a class being compiled lazily #67

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

Conversation

Christopher-Chianelli
Copy link
Collaborator

Previously, the entire global dict was loaded whenever a function was compiled. However, this causes issues if there is a global that is an instance or subclass of a class being compiled, and the class being compiled reference that global.

Now, when a class is being compiled, instances and subclasses of that class is excluded and loaded at runtime.

…ompiled lazily

Previously, the entire global dict was loaded whenever a function was
compiled. However, this causes issues if there is a global that is an
instance or subclass of a class being compiled, and the class being
compiled reference that global.

Now, when a class is being compiled, instances and subclasses of that
class is excluded and loaded at runtime.
Copy link

@Christopher-Chianelli Christopher-Chianelli merged commit a573b12 into TimefoldAI:main Jun 11, 2024
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