RE: laziness, memoization and inlining

2008-05-15 Thread Simon Peyton-Jones
To: Scott Dillard | Cc: Simon Peyton-Jones; Don Stewart; glasgow-haskell-users@haskell.org | Subject: Re: laziness, memoization and inlining | | Scott Dillard wrote: | > Simon, Don, | > | > You're right. -fno-state-hack fixed it. I've opened a trac ticket. | > Program and t

Re: laziness, memoization and inlining

2008-05-15 Thread Simon Marlow
Scott Dillard wrote: Simon, Don, You're right. -fno-state-hack fixed it. I've opened a trac ticket. Program and test data are there. http://hackage.haskell.org/trac/ghc/ticket/2284 Ok, but do we really need two tickets for this? Why open a new ticket rather than adding the information to th

Re: laziness, memoization and inlining

2008-05-14 Thread Scott Dillard
Simon, Don, You're right. -fno-state-hack fixed it. I've opened a trac ticket. Program and test data are there. http://hackage.haskell.org/trac/ghc/ticket/2284 Scott On Wed, May 14, 2008 at 1:48 AM, Simon Peyton-Jones <[EMAIL PROTECTED]> wrote: > Scott > > | I'm experiencing some undesirable

RE: laziness, memoization and inlining

2008-05-14 Thread Simon Peyton-Jones
Scott | I'm experiencing some undesirable performance behavior, I suspect from | inlining things that shouldn't be, defeating my memoization attempts. This is bad, very bad. I think Don is right. I believe the following is happening. In your main program you have do let mesh = memoMesh r

Re: laziness, memoization and inlining

2008-05-13 Thread Don Stewart
sedillard: > Hi Everybody, > > I'm experiencing some undesirable performance behavior, I suspect from > inlining things that shouldn't be, defeating my memoization attempts. > I've been experimenting with purely functional 3D modeling code, so a > mesh is (initially) something like > > > type Mes