szhambo / rapidjson

Automatically exported from code.google.com/p/rapidjson
MIT License
0 stars 0 forks source link

"pretty" example is much slower than YAJL's reformat #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
https://github.com/lloyd/yajl_vs_rapidjson

This contradicts the results shown in 
https://code.google.com/p/rapidjson/wiki/Performance

Original issue reported on code.google.com by milo...@gmail.com on 22 Nov 2011 at 3:31

GoogleCodeExporter commented 9 years ago
 the performance problem of pretty example should be mainly due to FileStream?, which uses fgetc(). And I will add another stream classes with buffers and using fread()/fwrite().

The https://code.google.com/p/rapidjson/wiki/Performance is aimed at testing 
parsing/generating performance, reading of source JSON string are excluded in 
the measurement.

However, I will fix the performance issues in examples soon, and gives results 
as well.

Original comment by milo...@gmail.com on 22 Nov 2011 at 3:32

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Revision r23 has modified pretty to use the new file stream. Need to rerun 
Lloyd's test.

Original comment by milo...@gmail.com on 14 Nov 2012 at 4:17