Browser Memory

A

arkerpay2001

Hi all,

Developing in JavaScript for IE6+ and Mozilla 1.7+. Could someone
please direct me to a reference that describes how memory in managed
within the browser? I need to know how much memory is available to my
JavaScript program.

Thanks,

arkerpay
 
A

arkerpay2001

For the record I spent about two hours googling it and did not find an
article that answered my query. If anyone is truly knowledgable on this
subject I'd appreciate it if you could share your knowledge.
 
G

Grant Wagner

Hi all,

Developing in JavaScript for IE6+ and Mozilla 1.7+. Could someone
please direct me to a reference that describes how memory in managed
within the browser? I need to know how much memory is available to my
JavaScript program.

Your "JavaScript program" has as much memory available to it as your
operating system can provide to the script host (the Web browser).

Firefox 1.0 typically uses between 20MB and 100MB on my system. Any
overhead added by client-side JavaScript is neglible compared to those
numbers.

If you anticipate that you will be doing things with client-side
JavaScript running in a Web browser that will seriously impact the a
20MB browser memory footprint, then client-side JavaScript running in a
Web browser is the wrong tool for the job.

I'd suggest reading <url:
http://weblogs.asp.net/ericlippert/archive/2003/09/17/53038.aspx />

" Now, you can force the JScript garbage collector to run with the
CollectGarbage() method, but I don't recommend it. The whole point of
JScript having a GC is that you don't need to worry about object
lifetime. If you do worry about it then you're probably using the wrong
tool for the job!"

and <url:
http://msdn.microsoft.com/msdnmag/issues/03/09/WebQA/default.aspx />

" JScript was designed to provide a quick, easy way to write simple
scripts on Web pages. The fact that you're asking at all makes me think
that you're using the wrong tool for the job."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top