Closed Bug 477119 Opened 15 years ago Closed 15 years ago

sapwood engine retrieves every theme's .png realpaths at every fennec startup (realpaths should be cached)

Categories

(Core :: Widget: Gtk, defect)

Other
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: fred23, Unassigned)

References

Details

(Keywords: mobile, perf)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.0.5) Gecko/2008121621 Ubuntu/8.04 (hardy) Firefox/3.0.5
Build Identifier: 1.0a3pre

This may be a maemo-gtk bug, but I'm reporting it here just as a follow-up mean since it's directly affecting fennec's startup time.

numerous "lstat64" system calls are triggered on the N810 device when calling the following instruction :

http://mxr.mozilla.org/mozilla-central/source/widget/src/gtk2/nsLookAndFeel.h#83.

see the first attachment for a list of every system calls issued by this instruction on the N810. (returned by strace)

Correct me if I'm mistaken, but I think we're currently using the nsLookAndFeel component only as a means to retrieve the theme's colors and metrics... We do not want all these .png files to seeked thoroughly. but I might be missing something here...

If we still DO want to let maemo-gtk access all these png images, then there's still something wrong : there's no CACHING. In fact, this big chunk of system calls happen every single time I run fennec. This is something I'm going to see with the maemo people.

Reproducible: Always

Steps to Reproduce:
1.Build mobile for PERF
2.Copy package to the N810
3.Run ./fennec once (profile is building)
4.Run ./fennec once more (we get our "warm" reset)
5.Run ./fennec yet once more...using strace ./fennec -o strace_fennec.log
6.Open strace_fennec.log with 'vi' or 'gedit' and notice there are 4057 'lstat64' system calls logged.
Actual Results:  
These system calls take up something like 30 - 60 ms of startup time.

Expected Results:  
If we don't need to access the themes's images, all of these system calls should be omited by maemo-gtk.

If not, we'd still be expecting caching of the hildon-theme for fast subsequent fennec startups.
Blocks: 459117
Status: UNCONFIRMED → NEW
Component: General → Widget: Gtk
Ever confirmed: true
Keywords: mobile, perf
Product: Fennec → Core
QA Contact: general → gtk
Summary: perf: nsLookAndFeel construction forces maemo-gtk2 to retrieve every single hildon theme's .png images (theme should be cached) → nsLookAndFeel construction forces maemo-gtk2 to retrieve every single hildon theme's .png images (theme should be cached)
Summary: nsLookAndFeel construction forces maemo-gtk2 to retrieve every single hildon theme's .png images (theme should be cached) → sapwood engine retrieves every theme's .png realpaths at every fennec startup (realpaths should be cached)
I filed appropriate bugs on the maemo side, and this issue 'may' be addressed in future freemantle development, so closing this bug for now on the mozilla side, as it's more appropriately followed-up at : https://bugs.maemo.org/show_bug.cgi?id=4466
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: