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

Remove some dynamic memory allocations in uWebSockets #12897

Merged
merged 2 commits into from
Jul 29, 2024

Conversation

Jarred-Sumner
Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner commented Jul 28, 2024

What does this PR do?

The MovableFunction in uWebSockets is a mostly unnecessary memory allocation. We can instead use C function pointers, since that's what we're using anyway.

image

Also removed the c-api folder, because it's confusing to have two different versions of the same thing

How did you verify your code works?

Ran it

Copy link
Contributor

github-actions bot commented Jul 28, 2024

@Jarred-Sumner, your commit has failing tests :(

💻 1 failing tests Darwin x64 baseline

  • test/js/web/streams/streams.test.js 1 failing

🪟💻 3 failing tests Windows x64 baseline

  • test/cli/install/registry/bun-install-registry.test.ts 1 failing
  • test/js/node/child_process/child_process.test.ts 1 failing
  • test/js/node/http/node-http.test.ts 1 failing

🪟💻 3 failing tests Windows x64

  • test/cli/install/registry/bun-install-registry.test.ts 1 failing
  • test/js/node/child_process/child_process.test.ts 1 failing
  • test/js/node/http/node-http.test.ts 1 failing

View logs

@7f8ddd

This comment was marked as outdated.

@cirospaciari cirospaciari merged commit dbd320c into main Jul 29, 2024
50 of 55 checks passed
@cirospaciari cirospaciari deleted the jarred/one-less-alloc branch July 29, 2024 18:10
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