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

Improve event processing performance #163

Merged
merged 6 commits into from
Dec 22, 2022
Merged

Improve event processing performance #163

merged 6 commits into from
Dec 22, 2022

Conversation

picklelo
Copy link
Contributor

  • Remove all special getattr and setattr logic previously included to handle some edge cases of substates accessing parent state vars. From now on, that use case will have to be more explicit.
  • Change gunicorn log level to critical - we had left it as debug which may also have impacted performance

Performance after this change:
Screen Shot 2022-12-21 at 6 14 44 PM

Compared to before: #153

@picklelo picklelo requested a review from Alek99 December 22, 2022 03:05
@picklelo picklelo linked an issue Dec 22, 2022 that may be closed by this pull request
@FHU-yezi
Copy link
Contributor

Maybe use error level for production and debug level for debug mode?

@picklelo
Copy link
Contributor Author

Maybe use error level for production and debug level for debug mode?

Made this update

Copy link
Member

@Alek99 Alek99 left a comment

Choose a reason for hiding this comment

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

Nice looks good glad

@@ -695,18 +637,3 @@ async def test_process_event_substate(TestState, ChildState, GrandchildState):
"test_state.child_state.grandchild_state": {"value2": "new"},
"test_state": {"sum": 3.14, "upper": ""},
}

Copy link
Member

Choose a reason for hiding this comment

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

Nice I think it won't be a big deal getting rid of this

@picklelo picklelo merged commit 974d2b4 into main Dec 22, 2022
@picklelo picklelo deleted the nikhil/perf2 branch December 22, 2022 04:04
ACucos1 pushed a commit to ACucos1/rd-pynecone that referenced this pull request Feb 28, 2023
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.

Add profiling
3 participants