<div dir="ltr">Sorry, I didn't mention I was thinking about the case where I would create a library module instead of using inline functions.</div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-28 21:01 GMT+02:00 Michael Kay <span dir="ltr"><<a href="mailto:mike@saxonica.com" target="_blank">mike@saxonica.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On 28 Jun 2015, at 19:32, W.S. Hager <<a href="mailto:wshager@gmail.com">wshager@gmail.com</a>> wrote:<br>
><br>
> One more consideration: function calls seem to be more expensive than inline expressions.<br>
<br>
</span>Saxon and I’m sure other products will inline function calls when they consider it appropriate. Because XQuery is side-effect-free and has no polymorphism, this is a pretty straightforward optimization.<br>
<span class=""><br>
<br>
> And then there's that baggage of a custom library...<br>
><br>
<br>
</span>I’m not sure what you’re referring to here.<br>
<span class="HOEnZb"><font color="#888888"><br>
Michael Kay<br>
Saxonica</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div>
<p> 
W.S. Hager<br>
Lagua Web Solutions<br>
<a href="http://lagua.nl/" target="_blank">http://lagua.nl</a><br></p></div></div>
</div>