3 ms·
This is interesting, but it's not the whole story. Apps that are media heavy can often use large amounts of memory outside the JavaScript heap. E.g., if you lo
by bartread 8y ago
This is interesting, but it's not the whole story. Apps that are media heavy can often use large amounts of memory outside the JavaScript heap.
E.g., if you load and decode a 3MB MP3 with the Web Audio API you can easily find yourself swallowing 30MB of RAM, depending upon the uncompressed sample rate. Another example: image decompression can lead to large amounts of GPU memory being swallowed.
You can see the effect of situations like this by using Chrome Task Manager, which will give you a more realistic view of total memory usage by a page.