Improved plan profile testdriver

We could do that, but at the moment this function is only used by the
plan/profile printer so there is no performance advantage in query
execution.
I think the one the serializer uses to emit strings is a better candidate.
What do you think?



On Tue, Aug 19, 2014 at 7:50 PM, MatthiasBrantner <notifications@github.com>
wrote:

> In src/util/xml_util.cpp:
>
> > +          os << "&lt;";
> > +          break;
> > +        case '>':
> > +          os << "&gt;";
> > +          break;
> > +        case '"':
> > +          if (attr)
> > +            os << "&quot;";
> > +          else
> > +            os.write( ec, utf8::encode( cp, ec ) );
> > +          break;
> > +        case '&':
> > +          os << "&amp;";
> > +          break;
> > +        default:
> > +          os.write( ec, utf8::encode( cp, ec ) );
>
> Should we also buffer here as we do in the json function?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/28msec/zorba/pull/90/files#r16431079>.
>