Open
Bug 528593
Opened 15 years ago
Updated 2 years ago
Improve nsLookAndFeel's start up performance on maemo
Categories
(Core :: Widget: Gtk, defect, P5)
Tracking
()
NEW
People
(Reporter: blassey, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: mobile, perf, Whiteboard: [ts][tpi:-])
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
according to mfinkle, we're spending 500ms in InitLookAndFeel grabbing defaults from gtk. That's all well and good, but we then throw all those defaults out because of the black theming on maemo. To top it off, we trigger the observer each time we set the a pref in js which is wasteful. I propose ifdefing InitLookAndFeel to set hard coded defaults for maemo.
Also, gavin points outthat nsXPLookAndFeel gets the pref service on each call (http://mxr.mozilla.org/mozilla-central/source/widget/src/xpwidgets/nsXPLookAndFeel.cpp#310) we should fix that too.
Reporter | ||
Updated•15 years ago
|
Comment 1•15 years ago
|
||
It'd be interesting to see how much this hurts us on WinCE, too.
Comment 2•15 years ago
|
||
Currently, Fennec uses it's own colors, supplied via preferences. I have a plan to also use ui.use_native_colors = false (since we supply our own) and then wrap the code that initializes the native colors (the slow part) in a sUseNativeColors block.
This plan would allow Fennec to side step the slow initialization, but still allow other xul-based application to use the system colors if they want.
Patch coming up.
Other ideas welcome too.
Comment 3•15 years ago
|
||
This patch implements the previous comment. Using this patch and "ui.use_native_colors" = false in Fennec I see a reduction of ~225ms during startup.
The talos startup test (run locally) varies quite a bit, but 5-run averages result in:
with patch: 5455ms
without patch: 5647ms
The path still has the timing code in it too.
Assignee: nobody → mark.finkle
Comment 4•15 years ago
|
||
what about the other 275ms? is there more win here?
Comment 5•15 years ago
|
||
(In reply to comment #4)
> what about the other 275ms? is there more win here?
nsLookAndFeel::InitLookAndFeel still has about 30ms I didn't remove because it was not color related. The bigger chunk comes from nsLookAndFeel::InitWidget which is also called in the constructor.
http://mxr.mozilla.org/mozilla-central/source/widget/src/gtk2/nsLookAndFeel.h#83
Comment 6•15 years ago
|
||
Stuart - I need a sanity check from you on this. If we want it to land, we need it soon.
Updated•15 years ago
|
Flags: wanted-fennec1.0+
Comment 7•14 years ago
|
||
stuart - assuming that this still is a startup perf, do you still want this?
Reporter | ||
Updated•14 years ago
|
tracking-fennec: ? → 2.0-
Updated•14 years ago
|
tracking-fennec: 2.0- → ---
Comment 8•13 years ago
|
||
This patch seems useful, why isn't it landed?
Updated•8 years ago
|
Assignee: mark.finkle → nobody
Updated•8 years ago
|
Whiteboard: [ts] → [ts][tpi:-]
Comment 9•5 years ago
|
||
Priority: -- → P5
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•