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

Re: CORRECTION: optimizing with === immutable comparitor

Thread Previous | Thread Next
From:
Ruud H.G. van Tol
Date:
July 14, 2006 04:26
Subject:
Re: CORRECTION: optimizing with === immutable comparitor
Message ID:
005401c6a738$538462f0$0b01a8c0@isolution.nl
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'
(not-a-boolean)?

-- 
Groet, Ruud


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About