SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2005
    Posts
    436
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How much memory do I have?

    I'm building an RIA and I'm wondering how much information I can store in memory without the site breaking. This application will be running for a full business day with no refreshes, and it will be constantly loading new data via Ajax. How much of the loaded data can I store before I'm forced to take some out?

    Thanks,
    Colin

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think this is going to depend on the browser, os, and probably even the specific computer. I would try to not keep a ton of stuff directly in javascript memory if possible. Maybe send cache friendly http headers along with the ajax responses and make each a unique url. I bet the browser would just cache a ton of it to disk. Make sure to only access the data in chunks though, and don't maintain variable references to the data. Just send another ajax request if you need some of the prior data. If it's cached, it will load from disk. Otherwise, it fetches from the server again.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •