Ticket #5317 (closed bug: wontfix)
non-linear complexity of :reload combined with :module in ghci
| Reported by: | SimonHengel | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.4.1 |
| Component: | Compiler | Version: | 7.0.3 |
| Keywords: | Cc: | simon.hengel@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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)
Change History
Note: See
TracTickets for help on using
tickets.
