libstdc++ istringstream & ostringstream are slow and have huge footprint