why do web browsers use so much ram, while the average size of an entire webpage is 2mb?

647 views

From what I understand, one could cache 100 web pages (obviously, 2mb is average, but there are much smaller and much larger than that) in about 200mb. 1GB could cache literally 500 web pages.

How come web browsers use so much ram then?

In: 3000

25 Answers

Anonymous 0 Comments

Besides, it may sound counterintuitive, but unlike, say, disk space, ram is meant to be used as much as possible

You don’t get an advantage clearing ram to have “available memory”, more likely you lose efficiency flushing ram unnecessarily

So programs (not just browsers) cache their procedses to ram since they can retrieve it much more efficiently than reloading from disk. And system will flush unused cache when other processes need it

Finally, that ram usage is not webpages being cached but memory used by the browser to work (rendering, analyzing, moving stuff around, code, etc)

You are viewing 1 out of 25 answers, click here to view all answers.