JsonParser is not visible from outside of json11.cpp,
so it has sense to move it into anonymous namespace to hint compiler that more strong optimizations are possible . gcc 5.2 not give any visible performance gains (~1%),
but with this patch change size of library (.text section) on gcc/linux was reduceded by 5%.
JsonParser
is not visible from outside ofjson11.cpp
, so it has sense to move it into anonymous namespace to hint compiler that more strong optimizations are possible .gcc 5.2
not give any visible performance gains (~1%), but with this patch change size of library (.text
section) on gcc/linux was reduceded by 5%.