You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that jotai is susceptible to the above WeakMap memory leak in ReactNative's Hermes engine.
We extensively use jotai in our application. Pushing different parts of its scaling to the limit. Two very large atom trees were joined together recently, and we began to notice memory pressure and slower GCs coming from jotai when some base atoms were modified a few times in a session.
Calling globalThis.gc() explicitly does free up the leaked memory. It would be better to update to a patched Hermes version of course, but at least there's a solution without needing an upgrade.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
facebook/hermes@e7b2abe
It appears that jotai is susceptible to the above WeakMap memory leak in ReactNative's Hermes engine.
We extensively use jotai in our application. Pushing different parts of its scaling to the limit. Two very large atom trees were joined together recently, and we began to notice memory pressure and slower GCs coming from jotai when some base atoms were modified a few times in a session.
Calling globalThis.gc() explicitly does free up the leaked memory. It would be better to update to a patched Hermes version of course, but at least there's a solution without needing an upgrade.
Beta Was this translation helpful? Give feedback.
All reactions