Re: Re: Function memoization
Colin Paul Adams <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Dimitre" == Dimitre Novatchev <[email protected]> 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