6 ms·
That's really interesting. I wonder if this is a Chromium-only issue? It may be worth filing a bug: https://bugs.chromium.org https://bugs.chromium.org I'm not
by nolanl 5y ago
That's really interesting. I wonder if this is a Chromium-only issue? It may be worth filing a bug: https://bugs.chromium.org https://bugs.chromium.org
I'm not an expert in this space, but it seems to me that the JavaScript engine could eventually clean up that memory, maybe based on some heuristics (e.g. the size of the original string, whether any references to the original string exist, etc.).
- nosianu 5y agohttps://bugs.chromium.org/p/v8/issues/detail?id=2869 https://bugs.chromium.org/p/v8/issues/detail?id=2869 "Issue 2869: Substring of huge string retains huge string in memory" Status: Assigned (Open) Reported 2013
- kohlerm 5y agoSame issue in Java at least for older JDKs. We used to have special (SAP) internal commands to detect this issue in the Eclipse Memory Analyzer.