flavio / qjson

QJson is a qt-based library that maps JSON data to QVariant objects.
http://qjson.sourceforge.net
GNU Lesser General Public License v2.1
287 stars 140 forks source link

qjsonDebug() slows the parsing down #51

Open yurivict opened 10 years ago

yurivict commented 10 years ago

json_parser.yy, json_scanner.cpp and json_parser.cc have qjsonDebug() << ... printouts enabled by default. Even though qjsonDebug() ignores this output, printing is still done in the enclosing code, therefore slowing it down. qjsonDebug() should be #ifndef-ed with some preprocessor variable.

PS: Even after with this fix qjson parser is still significantly slower than Qt5 internal parer.