ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> exslt
exslt
Re: [exslt] Re: Function memoization
by Colin Paul Adams other posts by this author
Jul 13 2006 10:49PM messages near this date
Re: [exslt] Re: Function memoization | RE : Re: [exslt] Re: Function memoization
& XSLT > >>>> "Dimitre" == Dimitre Novatchev <dnovatchev@[...].com> writes:

    > >  What do you mean by the ID?

    Dimitre>  I realize that this is implementation-dependent, but it
    Dimitre>  is practical not to pass long sequences by
    Dimitre>  value. Instead, they can be passed by reference.  The
    Dimitre>  reference is what I was referring to as the "ID" of the
    Dimitre>  sequence.

This is no good. That means two functions calls that pass the value 3
will not (usually) be memoized.

Now if long strings are being passed as arguments, then indeed the
cost of recognizinf them may be less than the cost of running a small
function.

I am inclined to drop my proposal alltogether.
-- 
Colin Adams
Preston Lancashire
_______________________________________________
exslt mailing list
list@[...].org
http://www.exslt.org/list
Thread:
Dimitre Novatchev
Colin Paul Adams
Dimitre Novatchev
Dimitre Novatchev
Colin Paul Adams
Florent Georges
James Fuller
Colin Paul Adams
Florent Georges
Dimitre Novatchev
Florent Georges
Dimitre Novatchev
Florent Georges
Dimitre Novatchev
Colin Paul Adams
Frans Englich
Florent Georges

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved