Closed Bug 138900 Opened 22 years ago Closed 22 years ago

pageload times went up ~1% with this checkin

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mcafee, Assigned: jst)

References

Details

(Keywords: perf, regression)

Attachments

(2 files, 2 obsolete files)

sorry, bugzilla + return submits?!  Who made that a feature.

Anyways, just a reminder bug to check this out,
most of the linux Tp tests show a jump of about 1%
around noon today.
Keywords: perf, regression
Methinks we must be calling load twice, though I am not sure why.
Assignee: jkeiser → jst
Component: Browser-General → HTMLFrames
Any new findings on that?
Attached patch Patch (obsolete) — Splinter Review
This patch ought to help things (it will cause us to call LoadFrame() less,
which we were doing on unload and when the iframe was inside a form).
Attached patch Patch v1.0.1 (obsolete) — Splinter Review
Oops, that last patch was an earlier version--this is the real one.
Attachment #80743 - Attachment is obsolete: true
Comment on attachment 80744 [details] [diff] [review]
Patch v1.0.1

sr=jst

Do we still have a problem with iframe's loading their document twice if we end
up demoting a container that contains an iframe element?

Either way, we can open a new bug on that if that's still a problem.
Attachment #80744 - Flags: superreview+
We shouldn't--that's why I added the code in SetParent().
What happens when we're done with DemoteContainer() and we set the parent back
to a non-null value? Don't we then end up requesting the same document again?
Attached patch Patch v1.1Splinter Review
Fix DemoteForm() problems by only loading frame when the frame loader is not
there, which it will not be in the case that the iframe has actually been
removed from the document and reinserted.
Attachment #80744 - Attachment is obsolete: true
r=peterv on the right patch (the one with |if (!aParent || mFrameLoader)|
instead of |if (!aParent)|). I don't like the name *Ensure*FrameLoader since
you're now actually destroying the loader in that function sometimes. r stands
regardless of a better name, but as you suggested I prefer Validate to Ensure.
Comment on attachment 80905 [details] [diff] [review]
Patch v1.1

From IRC:
r=peterv, assuming you upload the actual patch with the change you talked about
(ED: change if (!aParent) to if (!aParent || mFrameLoader))

Also consider changing EnsureFrameLoader to ValidateFrameLoader.
Attachment #80905 - Flags: review+
Comment on attachment 80905 [details] [diff] [review]
Patch v1.1

sr=jst
Attachment #80905 - Flags: superreview+
Fix checked in, but does not resolve the pageload regression.

Setting as blocker of bug 52334 (the springboard of all this) so that we don't 
forget patches here.
Blocks: 52334
This should eliminate double loading (or double initialization of loads) of
iframes which should have a positive impact on our pageload perf numbers. I'm
building right now to get some numbers, I'll report back once I have those
numbers...
Comment on attachment 85512 [details] [diff] [review]
Untested perf regression fix.

r=jkeiser
Attachment #85512 - Flags: review+
Comment on attachment 85512 [details] [diff] [review]
Untested perf regression fix.

jag says sr=jag
Attachment #85512 - Flags: superreview+
Fix checked in, lets see if we get any Tp improvments from this now...
Any stats about the improvements?
There was an improvment in the Tp numbers after the checkin, but we're talking
small numbers here, so I'm not sure it was all of 1%... Cathleen, could you look
into this, how much did we loose and how much did we gain back? Can we close
this bug? I'm not sure there's much more we can do here...
so check it in ?
Is there still anything that need's to be done about that?
What is the status of the two attached patches?  Let's find that out and then
make a decision about what to do with this bug.
They were checked in according to comments, so there's no work here not in the
tree already.
jst, we probably should mark this as worksforme or fixed.  I'll give jst a
chance to do so.
Much of the 1% was already recovered by the patches in this bug.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: