Re: Performance: Faster to define a function writing out all arguments?

2008-05-12 Thread Don Stewart
alexander.fuchs: > Hi Don. > >Could you submit a minimal, complete grammar file, so > >we can look at the generated code? > > After reducing and simplifying the grammar file to the minimum for my > sample input I can't see any difference in performance anymore. Due to > other code changes the di

How MD are .hi files?

2008-05-12 Thread Matthias Kilian
Hi, for an unregisterised ghc-6.8.2 (or newer), are the .hi files dependent (except for the 32 vs. 64 bit word size)? I had a quick look at the stuff in compiler/iface, but the only MD part I found was that 32/64 bit difference. TIA Ciao, Kili ps: if you think this sounds like a complet

Re: Performance: Faster to define a function writing out all arguments?

2008-05-12 Thread Alexander Fuchs
Hi Don. Don Stewart wrote: alexander.fuchs: In a happy parser I have this code 1): %monad { Parsed } { thenP } { returnP } type Parsed = State Env.Env returnP :: a -> Parsed a returnP a = return a thenP :: Parsed a -> (a -> Parsed b) -> Parsed b thenP x k = x >>= k An alternative was thi