develooper Front page | perl.perl6.language | Postings from July 2006

Re: CORRECTION: optimizing with === immutable comparitor

Thread Previous | Thread Next
Ruud H.G. van Tol
July 14, 2006 04:26
Re: CORRECTION: optimizing with === immutable comparitor
Message ID:
Darren Duncan schreef:

> What I propose concerning non-premature === optimizing is a system
> where, at any time that two appearances of the same immutable value
> are compared with ===, they are immediately consolidated into a
> single appearance.

That should only be done voluntarily. A bit like memoization.

Something else: An immutable composite value can have unfinalized parts.
Finalizing them for the sake of a deep comparison, can hurt performance.
Does a lazy system need something like 'undecided' or 'NaB'

Groet, Ruud

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About