#5317: non-linear complexity of :reload combined with :module in ghci
---------------------------------+------------------------------------------
    Reporter:  SimonHengel       |       Owner:              
        Type:  bug               |      Status:  new         
    Priority:  normal            |   Component:  Compiler    
     Version:  7.0.3             |    Keywords:              
    Testcase:                    |   Blockedby:              
          Os:  Unknown/Multiple  |    Blocking:              
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
---------------------------------+------------------------------------------
 {{{ghci}}} shows non-linear time complexity for a sequence of
 {{{:module}}} and {{{:reload}}} commands, say we do multiple times:


 {{{
 ghci> :module *Foo
 ghci> :reload
 }}}

 Steps to reproduce:

 {{{
 $ time for i in {1..10}; do echo -e ':m Prelude\n:r'; done |ghci
 $ time for i in {1..99}; do echo -e ':m Prelude\n:r'; done |ghci
 }}}

 On my system the first run uses 1 second of CPU time, the second 39
 seconds.

 (with GHC 7.0.3, Linux x86_64)

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5317>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to