Tuesday, November 13, 2012

javascript – Fast IPC method for the browser

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.


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.


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.


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.






Rating: 3 out of 5 based on 3 ratings



The post javascript – Fast IPC method for the browser appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/javascript-fast-ipc-method-for-the-browser.html

No comments:

Post a Comment