2 ms·
Would probably break that up similar to how you did in that case as well. Though may use multiple server request (chunks) and/or use a websocket for the data f
by tracker1 7y ago
Would probably break that up similar to how you did in that case as well. Though may use multiple server request (chunks) and/or use a websocket for the data feed.
What was the memory overhead for the application?
- Klathmon 7y agoI don't remember details about memory stuff, it was a few years ago now, but I was pleasantly surprised to see that it wasn't nearly as bad as I first assumed it would be. And I did originally plan on using something like a websocket, but turns out with some minor changes on the server side we could start streaming data while it was still being gathered, and oboe.js is actually able to start parsing data even while it's still downloading from a normal XHR request, and is designed to be as efficient as possible (so it throws away string data as soon as it's not needed any more). So there weren't really any additional benefits to be had from using websockets and breaking it up into multiple distinct requests would probably have been slower! (I just realized I forgot to add a link to oboe.js! But I highly recommend it. It seems it's just gotten better since the last time i've used it) [1] http://oboejs.com http://oboejs.com