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

PERF Only render extra destroyed information when debug mode is on #4027

Merged
merged 6 commits into from Aug 7, 2023

Conversation

hoodmane
Copy link
Member

@hoodmane hoodmane commented Jul 31, 2023

Rendering the destroyed error messages for PyProxies is pretty inefficient. This adds a setting to turn on debug mode. When debug mode is off, a cheaper destroyed message is used instead.

  • Add a CHANGELOG entry
  • Add / update tests
  • Add new / update outdated documentation

Rendering the destroyed error messages for PyProxies is pretty inefficient.
This adds a setting to turn on debug mode. When debug mode is off, a cheaper
destroyed message is used instead.
Copy link
Member

@ryanking13 ryanking13 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

src/tests/test_jsproxy.py Show resolved Hide resolved
@hoodmane hoodmane merged commit d12deae into pyodide:main Aug 7, 2023
0 of 2 checks passed
@hoodmane hoodmane deleted the ffi-debug branch August 7, 2023 10:59
@rth
Copy link
Member

rth commented Aug 25, 2023

I missed most of the discussions in the last 2-3 weeks, and trying to catch up now, but nice work on performance improvement!

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.

None yet

3 participants