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(ext/websocket): monomorphize code #19394

Merged
merged 2 commits into from
Jun 7, 2023

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Jun 7, 2023

Using deopt-explorer I found that a bunch of fields on WebSocket class
were polymorphic. Fortunately it was enough to initialize them to undefined
to fix the problem.

@bartlomieju bartlomieju marked this pull request as ready for review June 7, 2023 09:06
@bartlomieju bartlomieju force-pushed the ws_monomorphic branch 2 times, most recently from d956b83 to 01d8562 Compare June 7, 2023 09:07
Copy link
Contributor

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

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

Good find!

@bartlomieju bartlomieju merged commit 42c10ec into denoland:main Jun 7, 2023
10 checks passed
@bartlomieju bartlomieju deleted the ws_monomorphic branch June 7, 2023 09:54
bartlomieju added a commit that referenced this pull request Jun 8, 2023
Using `deopt-explorer` I found that a bunch of fields on `WebSocket`
class were polymorphic. 

Fortunately it was enough to initialize them to `undefined`
to fix the problem.
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

2 participants