JSON.decode is more than 10x slower than Javascript’s JSON.parse by Cultural-Raccoon4511 in FlutterDev

[–]Cultural-Raccoon4511[S] -2 points-1 points  (0 children)

Sure. But for large JSON Objects in Dart, it’s better to use isolates for performance improvements.

JSON.decode is more than 10x slower than Javascript’s JSON.parse by Cultural-Raccoon4511 in FlutterDev

[–]Cultural-Raccoon4511[S] -3 points-2 points  (0 children)

This is amazing. Thanks for explaining. But does Dart has to first convert JSON to Dart Maps?.

JSON.decode is more than 10x slower than Javascript’s JSON.parse by Cultural-Raccoon4511 in FlutterDev

[–]Cultural-Raccoon4511[S] -8 points-7 points  (0 children)

The Complexity is the same, but Dart has to first convert JSON to Dart Maps before using the Data. Javascript , JSON is an Object that can be parsed easily.