Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Tweak condition for TEXTDECODER=2 default #24349

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

Merged

Conversation

RReverser
Copy link
Collaborator

@RReverser RReverser commented May 16, 2025

  • When using pthreads, our TextDecoder usage already correctly handles shared memory through the getUnsharedTextDecoderView helper, so the check and the comment are outdated.
  • When targeting Audio Worklets, we already have assertion that TEXTDECODER!=2 as it's not compatible with that environment, so opt-out from the size optimisation there instead.

 - When using pthreads, our TextDecoder usage already correctly handles shared memory, so the check and the comment are outdated.
 - When targeting Audio Worklets, we already have assertion that TEXTDECODER!=2 as it's not compatible with that environment, so opt-out from the size optimisation there instead.
@sbc100
Copy link
Collaborator

sbc100 commented May 16, 2025

Is see the pthreads build uses getUnsharedTextDecoderView... I assume that applies to wasm workers too. Maybe mention getUnsharedTextDecoderView?

@RReverser
Copy link
Collaborator Author

Maybe mention getUnsharedTextDecoderView?

You mean in the PR description or in a comment in the code?

@sbc100
Copy link
Collaborator

sbc100 commented May 16, 2025

Maybe mention getUnsharedTextDecoderView?

You mean in the PR description or in a comment in the code?

The PR description

@RReverser
Copy link
Collaborator Author

Done.

@sbc100 sbc100 merged commit be873b8 into emscripten-core:main May 16, 2025
26 of 28 checks passed
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.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.