title: Fast IPC method for the browser
body: <p>I wrote an application that accumulates data (a few MB/sec, but updated like 10 times a second) and displays the current process in the browser via javascript.</p>
  
  <p>The problem is that currently I write the data to file and load it with javascript, but this makes the application very laggy and people are complaining that their hdd is working a lot.</p>
  
  <p>I would love to use some flags like "FILE_ATTRIBUTE_TEMPORARY" to tell my OS to not actually write the files to disk, but javascript requires me to close the file handle first (otherwise firefox couldn't open it). Thus it will be written to disk at that point, killing the point in initially using that flag.</p>
  
  <p>I thought about using something like a mysql database, but I really want to keep it as simple as possible, and I would prefer a solution that doesn't force the user to set up some http or mysql server.</p>