Opened 10 years ago

Closed 5 years ago

#1747 closed bug (wontfix)

debugger: :trace is wasting time

Reported by: simonmar Owned by:
Priority: lowest Milestone: 7.6.2
Component: GHCi Version: 6.6.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Compile-time performance bug Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description (last modified by simonmar)

When using :trace, execution is constantly switching between the main GHCi thread and the execution thread. The main GHCi thread is a bound thread, whereas the other thread is an unbound thread, so these context switches are real OS-thread switches, consequently :trace wastes a lot of time context-switching.

Perhaps the main GHCi thread should be an unbound thread, or else :trace should fork an unbound thread before starting execution.

Change History (17)

comment:1 Changed 10 years ago by simonmar

Description: modified (diff)

comment:2 Changed 10 years ago by simonmar

Milestone: 6.8 branch6.8.3

comment:3 Changed 10 years ago by simonmar

Type: bugcompile-time performance bug

comment:4 Changed 9 years ago by igloo

Milestone: 6.8.36.10.1

comment:5 Changed 9 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:6 Changed 9 years ago by simonmar

Operating System: UnknownUnknown/Multiple

comment:7 Changed 9 years ago by igloo

Milestone: 6.10.16.12 branch
Priority: lownormal

comment:8 Changed 8 years ago by simonmar

Type of failure: Compile-time performance bug

comment:9 Changed 7 years ago by igloo

Milestone: 6.12 branch6.12.3

comment:10 Changed 7 years ago by igloo

Milestone: 6.12.36.14.1
Priority: normallow

comment:11 Changed 7 years ago by igloo

Milestone: 7.0.17.0.2

comment:12 Changed 7 years ago by igloo

Milestone: 7.0.27.2.1

comment:13 Changed 6 years ago by igloo

Milestone: 7.2.17.4.1

comment:14 Changed 6 years ago by igloo

Milestone: 7.4.17.6.1
Priority: lowlowest

comment:15 Changed 5 years ago by igloo

Milestone: 7.6.17.6.2

comment:16 Changed 5 years ago by morabbin

Bump; still relevant? BTW: this has no comments of substance, only component changes.

comment:17 Changed 5 years ago by simonmar

Resolution: wontfix
Status: newclosed

Not much to be gained by having this ticket open, so I'll close it.

Note: See TracTickets for help on using tickets.