Closed Bug 1579990 Opened 3 months ago Closed 3 months ago

Pretty printer worker should be created on demand

Categories

(DevTools :: Debugger, task, P3)

71 Branch
task

Tracking

(firefox71 fixed)

RESOLVED FIXED
Firefox 71
Tracking Status
firefox71 --- fixed

People

(Reporter: sorin.davidoi, Assigned: sorin.davidoi)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0

Steps to reproduce:

Opened debugger.

Actual results:

The pretty printing worker was started as part of the bootstrap.

Expected results:

Given that probably a small minority of users that open the debugger use the pretty printing functionality, the worker should not be created up-front in order to reduce memory usage and the overhead of starting a thread.

Good idea

Start pretty print worker only when pretty printing for the first time.

Type: enhancement → task
Priority: -- → P3
Blocks: dbg-perf
Pushed by jlaster@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/abbb105e77f6
Start pretty print worker lazily. r=jlast,Honza
Assignee: nobody → sorin.davidoi
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71
You need to log in before you can comment on or make changes to this bug.