Wasm is still loading
Calculate results for up to to the power of concats. Since StringBuilder is slow, limit it to power of
You might get a popup about the page being slow. You need to click wait.
On Chrome Version 84.0.4147.89 (Official Build) (64-bit) I was able to do 2^26 before the browser ran out of memory.
I even tried increasing the js heap limit and that did not help: https://bugs.chromium.org/p/v8/issues/detail?id=847 recommends opening chrome with -args --js-flags="--max_old_space_size=8192" after experimenting with it a bit, the command will look like: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -args --js-flags="--max_old_space_size=8192" from a command prompt. You can confirm by opening developer tools console and running console.memory and your jsHeapSizeLimit should be larger than without the flag.
On Firefox 78.0.2 (64-bit) I was also able to to do 2^27 before the browser ran out of memory.
# concats | # concats | String conat | Array.join | Javascript StringBuilder | Rust StringBuilder |
---|