That is going to depend upon the implementation.
In Gestalt, function-available() is very cheap.
Performance is always processor-dependent. If the argument to
function-available is a literal, then Saxon is going to optimize away
something like
if (function-available('f:x')) then f:x() else ()
at compile time either to a call on f:x() or to ().
thanks - nothing to worry about it seems...
I've never written or come across (I think...) a runtime created
argument to function-available() - are there any common examples /
uses or really is it pretty rare?
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--