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.
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.