<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6001.18099" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=452292220-24092008><FONT face=Arial 
color=#0000ff size=2>Yes. Use "declare option saxon:memo-function", 
see</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=452292220-24092008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=452292220-24092008><FONT face=Arial 
color=#0000ff size=2><A 
href="http://www.saxonica.com/documentation/using-xquery/extensions.html">http://www.saxonica.com/documentation/using-xquery/extensions.html</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=452292220-24092008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=452292220-24092008><FONT face=Arial 
color=#0000ff size=2>Michael Kay</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=452292220-24092008><FONT face=Arial 
color=#0000ff size=2>Saxonica</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> talk-bounces@x-query.com 
  [mailto:talk-bounces@x-query.com] <B>On Behalf Of </B>Rémi 
  Dewitte<BR><B>Sent:</B> 24 September 2008 14:42<BR><B>To:</B> 
  talk@x-query.com<BR><B>Subject:</B> [xquery-talk] XQuery 
  memoization<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV dir=ltr>Hi all,<BR>Is there something to apply memoization on a function 
  to speed up multiple calls with same arguments ?<BR><BR>I am using saxon 
  9.<BR><BR>Cheers,<BR>Rémi<BR></DIV></BLOCKQUOTE></BODY></HTML>