<div dir="auto"><div>Fact of the matter is that if a low level optimization can be made, it must be made outside of XQuery. I assume it happens all the time. But sure, it depends on the use case.</div><div dir="auto"><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">Op 15 jul. 2017 22:47 schreef "Michael Kay" <<a href="mailto:mike@saxonica.com" target="_blank">mike@saxonica.com</a>>:<br type="attribution"><blockquote class="m_-1406159264689449730m_-550418084443594681quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_-1406159264689449730m_-550418084443594681quoted-text">><br>
> Obviously this operation could be implemented in the host language to make it truly efficient.<br>
<br>
</div>Don't assume that other languages are inevitably more efficient than XQuery.<br>
<br>
And don't assume that the cost of moving/converting data from one programming language to another is negligible.<br>
<font color="#888888"><br>
Michael Kay<br>
Saxonica<br>
<br>
</font></blockquote></div><br></div></div></div>