-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
(concatenated string) takes 23% of beacon node's heap #3446
Comments
I've manually opened Search for Notable strange things found: Base64 text (extreme amounts)
Short hex values (extreme amounts)
Code snippets
domains?
RSA Certificates LOL
|
Also review |
I've run some memory benchmarks
and performance benchmarks
Representing strings as concatenated takes x10 times more memory! We must use Buffer.toString() everywhere and use some switch strategy to make it browser compatibe. |
It's a dependency of EDIT: Actually, it looks like we use |
Before considering removing we should calculate the impact on memory of this specific dependency, maybe it's quite low and not an issue. Because we do need that dependency to run from mnemonic which we do in our testnet deployments |
Latest release has 1 GB less of process heap bytes. We should take another heap snapshot to confirm the current share of concatenated strings |
Describe the bug
In a synced healthy node in mainnet, according to a recent heap snapshot (concatenated string) take
Expected behavior
??? Strings should take so much memory?
The text was updated successfully, but these errors were encountered: