Skip to content

Apply patch to stop memory leak#1

Open
thomasdeanwhite-papermill wants to merge 2 commits intomasterfrom
memory_patch
Open

Apply patch to stop memory leak#1
thomasdeanwhite-papermill wants to merge 2 commits intomasterfrom
memory_patch

Conversation

@thomasdeanwhite-papermill
Copy link
Collaborator

@thomasdeanwhite-papermill thomasdeanwhite-papermill commented Oct 31, 2025

Issue: the YDoc from YJS isn't being destroyed after getDoc is called, meaning they build up in RAM. Awareness also appears to not be destroyed.

This PR applies the memory patch found in issue here yjs#24 and fork of Yjs here: yjs@a237b39 (it's actually open as a PR to y-redis repo: yjs#36).

Results from the experiment can be found here: https://whimsical.com/experiment-results-VE9S9puaYBHPw5oT7tokp7

Sadly there's no payload that can go here, I'm happy to run through the experiments and how you can run them if needed.

@thomasdeanwhite-papermill thomasdeanwhite-papermill changed the title Apply patch Apply patch to stop memory leak Oct 31, 2025
@thomasdeanwhite-papermill thomasdeanwhite-papermill force-pushed the memory_patch branch 2 times, most recently from 6543b45 to a3c8592 Compare October 31, 2025 11:33
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.

1 participant