[Haskell-cafe] Does GHC compare pointers when eval'ing (==)

Johan Holmquist holmisen at gmail.com
Wed Aug 20 06:52:31 UTC 2014

Comparing two structures for equality (structurally) can be expensive. But
if their references are the same they would for sure be equal (unless (==)
was defined in some funny way). Does GHC perform any such optimization?

(Likely a question for another list but I make a stab here first. )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140820/5f1d916c/attachment.html>

More information about the Haskell-Cafe mailing list