Monday, December 2, 2013

Websites, Web Apps, Running Faster Techniques

Beyond caching: Google engineers reveal secrets to faster websites | PCWorld: " . . . To improve performance, and better manage memory, developers should use an approach similar to the one used by the middleware library Emscripten, which is being used to build high performance HTML5 web games. Emscripten converts code written in C or C++ into JavaScript, allowing it to manage memory from within the application itself. An Emscripten-based program will pre-allocate a block of memory from the system. The programmer, along with Emscripten itself, decides when memory is no longer needed, and Emscripten returns this unused memory to its pool of internally available memory. The JavaScript engine does not do any garbage collection on the program and so would not affect the performance of the program. Generally speaking, programs written with this technique can run two to four times faster than typical JavaScript programs and do not suffer from the occasional lag in performance that GC operations can cause, McAnlis said. . . ." (read more at link above)




No comments:

Android Developers Blog

Pocket Gamer.biz

NVIDIA