Skip to content

Mention shared memory in using web workers#40397

Merged
Josh-Cena merged 2 commits intomdn:mainfrom
Josh-Cena:sharedmem
Jul 17, 2025
Merged

Mention shared memory in using web workers#40397
Josh-Cena merged 2 commits intomdn:mainfrom
Josh-Cena:sharedmem

Conversation

@Josh-Cena
Copy link
Copy Markdown
Member

The current claim is incorrect: some data can be shared instead of copied. I added a very brief mention of SharedArrayBuffer, but did not go into details because that would be mdn/mdn#341.

I also removed an unilluminating example about "simulating copy" because it's a very bad way to demonstrate this anyway, when you already have structuredClone.

@Josh-Cena Josh-Cena requested a review from a team as a code owner July 17, 2025 05:04
@Josh-Cena Josh-Cena requested review from sideshowbarker and removed request for a team July 17, 2025 05:04
@github-actions github-actions bot added Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed labels Jul 17, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 17, 2025

Preview URLs

(comment last updated: 2025-07-17 06:55:05)

Comment thread files/en-us/web/api/web_workers_api/using_web_workers/index.md Outdated
Co-authored-by: sideshowbarker <mike@w3.org>
@Josh-Cena Josh-Cena merged commit 1ff2e89 into mdn:main Jul 17, 2025
8 checks passed
@Josh-Cena Josh-Cena deleted the sharedmem branch July 17, 2025 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants