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

ImmutableVar perf optimizations #3814

Merged
merged 4 commits into from
Aug 28, 2024
Merged

ImmutableVar perf optimizations #3814

merged 4 commits into from
Aug 28, 2024

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Aug 21, 2024

Shave 30s off reflex-web compile time with the new ImmutableVar PR #3743

  • Skip VarData instantiation when VarData.merge yields no result
  • LRU cache on expensive typing calls

@Alek99 Alek99 self-requested a review August 21, 2024 01:44
@Alek99
Copy link
Member

Alek99 commented Aug 21, 2024

nice trying it out

@Alek99
Copy link
Member

Alek99 commented Aug 21, 2024

Works well for me if I run it with REFLEX_COMPILE_PROCESSES=1, otherwise, I run into some problems, and compile hangs

@masenf
Copy link
Collaborator Author

masenf commented Aug 21, 2024

compile hangs

is this before, during, or after the compiling progress bar appears?

i'm not reproducing the issue on my side

@masenf masenf changed the base branch from immutable-vars to main August 24, 2024 00:03
@masenf
Copy link
Collaborator Author

masenf commented Aug 26, 2024

deadlocking issues fixed in #3835

Copy link
Contributor

@picklelo picklelo left a comment

Choose a reason for hiding this comment

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

awesome!

@masenf masenf merged commit 8f396fc into main Aug 28, 2024
46 checks passed
@masenf masenf deleted the masenf/var-perf branch August 28, 2024 17:02
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