Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Transfer object as JavaScript object

$
0
0
Hi again,

A test that generates large JSON structures (source code here) reveals that V8's JSON parser is 3-4 times as fast as its JavaScript parser, at least when it comes to processing JSON. Consider also that JavaScript parsers are not 100% JSON-compliant (link).

Of course, this test uses very large JSON blocks (~7.5 million characters each) and may not be representative of your application. By using a trivial someFunc, it does isolate the performance of object transfer and conversion. Is it possible that your performance issues are within your someFunc implementation?

We're looking at adding support for the Edge version of Chakra, but that's at a very early stage.

Cheers!

Viewing all articles
Browse latest Browse all 2297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>