Closed
Bug 465128
Opened 16 years ago
Closed 16 years ago
.autoreg timestamp problems (component registration owns startup time)
Categories
(Toolkit Graveyard :: XULRunner, defect, P3)
Toolkit Graveyard
XULRunner
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.9.1b3
People
(Reporter: pavlov, Assigned: taras.mozilla)
References
Details
(4 keywords)
Attachments
(1 file, 4 obsolete files)
(deleted),
patch
|
benjamin
:
review+
beltzner
:
approval1.9.1+
|
Details | Diff | Splinter Review |
http://mxr.mozilla.org/mozilla-central/source/xulrunner/app/Makefile.in#274
is causing us to package up a .autoreg as part of Fennec (via make package, deb, etc). This causes every startup to take 35 seconds instead of 9.
Flags: blocking1.9.1?
Comment 1•16 years ago
|
||
Benjamin, is this something our packaging scripts should deal with, or is it something xulrunner's makefile should handle?
I also don't understand why this file is not getting deleted after the first run. The code in XPCOMInit doesn't seem to remove the file:
http://mxr.mozilla.org/mozilla-central/source/xpcom/build/nsXPComInit.cpp#342
Comment 2•16 years ago
|
||
Simple patch that only creates the .autoreg file for debug builds
[Do we even need the file for debug builds?]
Assignee: nobody → mark.finkle
Attachment #348401 -
Flags: review?(benjamin)
Updated•16 years ago
|
Attachment #348401 -
Attachment is patch: true
Attachment #348401 -
Attachment mime type: application/octet-stream → text/plain
Comment 3•16 years ago
|
||
same as last, but with a real tab character
Attachment #348401 -
Attachment is obsolete: true
Attachment #348402 -
Flags: review?(benjamin)
Attachment #348401 -
Flags: review?(benjamin)
Comment 4•16 years ago
|
||
The .autoreg file should not be causing every startup to be longer. Do we know why it is? We should be comparing the .autoreg file timestamp against the component registration file timestamp and only re-registering if the .autoreg has a newer timestamp.
Comment 5•16 years ago
|
||
I know Phil was wondering about this in #developers not long ago.
Assignee | ||
Updated•16 years ago
|
Updated•16 years ago
|
Attachment #348402 -
Flags: review?(benjamin)
Comment 6•16 years ago
|
||
Comment on attachment 348402 [details] [diff] [review]
patch - with real tab
Clearing review for unanswered questions.
Assignee | ||
Comment 7•16 years ago
|
||
Problem is when the device clock is screwed up. For example the N810 configures time in UTC instead local timezone causing things to startup slower than needed for 8 hours after the build.
I think we should add a time check to ignore .autoreg if the timestamp is in the future.
Assignee | ||
Comment 8•16 years ago
|
||
I also took out a bunch of stat() calls.
Assignee: mark.finkle → tglek
Attachment #351278 -
Flags: review?(benjamin)
Assignee | ||
Comment 9•16 years ago
|
||
previous patch didn't check to the other timestamp comparison
Attachment #351278 -
Attachment is obsolete: true
Attachment #351286 -
Flags: review?(benjamin)
Attachment #351278 -
Flags: review?(benjamin)
Comment 10•16 years ago
|
||
Comment on attachment 351286 [details] [diff] [review]
Ignore autoreg if timestamps are screwy(in box cases)
This looks like an acceptable approach. However, we no longer use the NSPR LL_ macros: all our targets support native long longs, so please just use regular operators (*</)
Attachment #351286 -
Flags: review?(benjamin) → review-
Assignee | ||
Comment 11•16 years ago
|
||
Attachment #351286 -
Attachment is obsolete: true
Attachment #351996 -
Flags: review?(benjamin)
Assignee | ||
Updated•16 years ago
|
Summary: Do not package .autoreg files (component registration owns startup time) → .autoreg timestamp problems (component registration owns startup time)
Updated•16 years ago
|
Attachment #351996 -
Flags: review?(benjamin) → review+
Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Updated•16 years ago
|
Attachment #348402 -
Attachment is obsolete: true
Comment 12•16 years ago
|
||
Comment on attachment 351996 [details] [diff] [review]
Ignore autoreg if timestamps are screwy(no more LL_*)
[Checkin: Comment 12 & 14]
http://hg.mozilla.org/mozilla-central/rev/15573888a32f
Attachment #351996 -
Attachment description: Ignore autoreg if timestamps are screwy(no more LL_*) → Ignore autoreg if timestamps are screwy(no more LL_*)
[Checkin: Comment 12]
Updated•16 years ago
|
Status: NEW → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Version: unspecified → Trunk
Assignee | ||
Updated•16 years ago
|
Attachment #351996 -
Flags: approval1.9.1?
Comment 13•16 years ago
|
||
Comment on attachment 351996 [details] [diff] [review]
Ignore autoreg if timestamps are screwy(no more LL_*)
[Checkin: Comment 12 & 14]
a191=beltzner
Attachment #351996 -
Flags: approval1.9.1? → approval1.9.1+
Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Comment 14•16 years ago
|
||
Comment on attachment 351996 [details] [diff] [review]
Ignore autoreg if timestamps are screwy(no more LL_*)
[Checkin: Comment 12 & 14]
http://hg.mozilla.org/releases/mozilla-1.9.1/rev/dc33b51a4125
Attachment #351996 -
Attachment description: Ignore autoreg if timestamps are screwy(no more LL_*)
[Checkin: Comment 12] → Ignore autoreg if timestamps are screwy(no more LL_*)
[Checkin: Comment 12 & 14]
Updated•16 years ago
|
Keywords: checkin-needed → fixed1.9.1
Target Milestone: mozilla1.9.2a1 → mozilla1.9.1b3
Updated•16 years ago
|
Flags: blocking1.9.1? → blocking1.9.1+
Priority: -- → P3
Updated•9 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•