Can a large (but not large enough to crash) javascript heap (not just excessive scripting or dom elements) slow down a website?

Viewed 36

I am using angular material dialog, with mat stepper three tables (one per step), one or two of them may contain thousands of records. I have already implemented (material) virtual scrolling. Switching between steps will be choppy in IE, as does scrolling down, and there's a delay when I click on step one's form (the other steps are tables), there's a delay on the blur of the form field. I am not at the point where the heap is "too large" to where the site crashes, and it works fine in chrome...but is the fact that the heap is simply large (520 mb) going to simply make things slower?

1 Answers

Of course it can cause a slowdown if the user's machine has to resort to using virtual memory/paging file to compensate for the large heap. Beyond that, it might cause trivial slowdowns in garbage collection, but that's hardly even worth mentioning.

Related