Re: ghc 6.10.1 on freebsd 7 amd64 - ghci problems

2008-12-15 Thread Simon Marlow
Markus Barenhoff wrote: I've updated my source tree today. But now I've problem while compiling the ghc Here is the the build output: [...] /usr/home/alios/src/haskell/ghc/ghc/ghc/stage1-inplace/ghc -DGHCI_TABLES_NEXT_TO_CODE -DSTAGE=2 -package-name ghc-6.11.20081211 -hide-all-packages

Re: ghci and ghc -threaded [slowdown]

2008-12-15 Thread Malcolm Wallace
It seems that the problem you have is that moving to the multithreaded runtime imposes an overhead on the communication between your two threads, when run on a *single CPU*. But performance on a single CPU is not what you're interested in - you said you wanted parallelism, and for that you

Re: ghci and ghc -threaded [slowdown]

2008-12-15 Thread Simon Marlow
Malcolm Wallace wrote: It seems that the problem you have is that moving to the multithreaded runtime imposes an overhead on the communication between your two threads, when run on a *single CPU*. But performance on a single CPU is not what you're interested in - you said you wanted

Re: ghci and ghc -threaded [slowdown]

2008-12-15 Thread Simon Marlow
Malcolm Wallace wrote: Simon Marlow marlo...@gmail.com wrote: Malcolm Wallace wrote: For the only application I tried, using the threaded RTS imposes a 100% performance penalty - i.e. computation time doubles, compared to the non-threaded RTS. This was with ghc-6.8.2, and maybe the overhead

length of module name affecting performance??

2008-12-15 Thread Daniel Gorín
Hi While trying to see if I could make some code run faster I stumbled upon something that looks weird to me: 2x-3x performance loss when a module is renamed to a longer name! Here's what I see with the attached examples: #diff long-modname-ver.hs short-modname-ver.hs 2c2 import

Re: length of module name affecting performance??

2008-12-15 Thread Neil Mitchell
Hi I'm using GHC 6.10.1 on OS X. Any ideas on what may be going on? Wow. Awesome bug! Got lots of discussion at Galois :) I can confirm a difference in running time, we also tested with 6.8.x and 6.10, with similar results. Is -O2 implying -fvia-C? If so, could it be the evil mangler? Is

Re: length of module name affecting performance??

2008-12-15 Thread Don Stewart
Running time as a function of module name length, http://galois.com/~dons/images/results.png 10 is the magic threshold, where indirections start creeping in. Codegen cost heuristic fail? -- Don ___ Glasgow-haskell-users mailing list

Re: length of module name affecting performance??

2008-12-15 Thread Don Stewart
dons: Running time as a function of module name length, http://galois.com/~dons/images/results.png 10 is the magic threshold, where indirections start creeping in. Codegen cost heuristic fail? Given this, could you open a bug ticket for it, with all the info we have,

Re: length of module name affecting performance??

2008-12-15 Thread Lennart Augustsson
That's a truly awesome feature! I'll shorten all my module names to single letters tomorrow. -- Lennart On Tue, Dec 16, 2008 at 12:43 AM, Don Stewart d...@galois.com wrote: dons: Running time as a function of module name length, http://galois.com/~dons/images/results.png 10 is the

Re: length of module name affecting performance??

2008-12-15 Thread Sigbjorn Finne
Ditto. Can I claim the [A-Z].* hierarchies as belonging to me? :-) --sigbjorn putting them up on eBay afterwards...maybe On 12/15/2008 18:00, Lennart Augustsson wrote: That's a truly awesome feature! I'll shorten all my module names to single letters tomorrow. -- Lennart On Tue, Dec 16,

Re: length of module name affecting performance??

2008-12-15 Thread Daniel Gorín
On Dec 15, 2008, at 10:43 PM, Don Stewart wrote: dons: Running time as a function of module name length, http://galois.com/~dons/images/results.png 10 is the magic threshold, where indirections start creeping in. Codegen cost heuristic fail? Given this, could you open a bug ticket for