WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
160112
REGRESSION (
r202876
): Web Inspector: Switching away from Console tab with a lot of messages is slow
https://bugs.webkit.org/show_bug.cgi?id=160112
Summary
REGRESSION (r202876): Web Inspector: Switching away from Console tab with a l...
Nikita Vasilyev
Reported
2016-07-22 21:25:57 PDT
Created
attachment 284396
[details]
[HTML] Reduction This regressed in:
https://trac.webkit.org/changeset/202876/trunk/Source/WebInspectorUI/UserInterface/Views/TabBrowser.js
Steps: 1. Open attached reduction 2. Open Web Inspector 3. Open Console tab 4. Clear console 5. Reload the page 6. Click on Debugger tab Expected: Debugger tab opens in <0.5 seconds Actual: Web Inspector UI becomes unresponsive for 2-3 seconds before it opens Debugger tab.
rdar://problem/27431121
Attachments
[HTML] Reduction
(384 bytes, text/html)
2016-07-22 21:25 PDT
,
Nikita Vasilyev
no flags
Details
Patch
(1.99 KB, patch)
2016-07-22 21:33 PDT
,
Nikita Vasilyev
joepeck
: review+
joepeck
: commit-queue+
Details
Formatted Diff
Diff
[Image] Before/After
(179.38 KB, image/png)
2016-07-22 21:39 PDT
,
Nikita Vasilyev
no flags
Details
Patch
(2.22 KB, patch)
2016-07-22 23:03 PDT
,
Nikita Vasilyev
nvasilyev
: review-
nvasilyev
: commit-queue+
Details
Formatted Diff
Diff
Patch
(2.24 KB, patch)
2016-07-22 23:29 PDT
,
Nikita Vasilyev
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Nikita Vasilyev
Comment 1
2016-07-22 21:33:24 PDT
Created
attachment 284397
[details]
Patch
Nikita Vasilyev
Comment 2
2016-07-22 21:39:23 PDT
Created
attachment 284399
[details]
[Image] Before/After
Nikita Vasilyev
Comment 3
2016-07-22 21:43:38 PDT
With the patch applied, I was unable to reproduce
bug 158069
. cq- because I don't yet understand the change that was made in that bug.
Nikita Vasilyev
Comment 4
2016-07-22 21:53:53 PDT
(In reply to
comment #2
)
> Created
attachment 284399
[details]
> [Image] Before/After
Hm, I'm getting different results every time. I'm still seeing 2-3x performance improvement on average.
Joseph Pecoraro
Comment 5
2016-07-22 22:48:38 PDT
Comment on
attachment 284397
[details]
Patch r=me, Tim's review comment at the time made this change unnecessary anyways, so win win!
Joseph Pecoraro
Comment 6
2016-07-22 22:50:38 PDT
Comment on
attachment 284397
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=284397&action=review
> Source/WebInspectorUI/ChangeLog:11 > + (WebInspector.TabBrowser.prototype._tabBarItemSelected): > + Showing NavigationSidebar before removing previous TabContentView can be very slow when > + TabContentView is ConsoleTabContentView with a lot of messages.
This comment just says "can be slow" but doesn't state the reason WHY it is slow. In this case, I believe the WHY was because it caused extra forced layouts because of the order of operations (show sidebar, change content view, show sidebar) instead of (change content view, show sidebar, show sidebar).
Nikita Vasilyev
Comment 7
2016-07-22 23:03:30 PDT
Created
attachment 284403
[details]
Patch
Joseph Pecoraro
Comment 8
2016-07-22 23:15:55 PDT
Comment on
attachment 284403
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=284403&action=review
> Source/WebInspectorUI/ChangeLog:9 > + TabContentView is ConsoleTabContentView with a lot of messages because of the order of operations:
Again "because of the order of operations" doesn't explain what is slow. It is because this different order of operations triggered MORE forced layouts.
Nikita Vasilyev
Comment 9
2016-07-22 23:29:09 PDT
Created
attachment 284404
[details]
Patch
WebKit Commit Bot
Comment 10
2016-07-23 00:18:37 PDT
Comment on
attachment 284404
[details]
Patch Clearing flags on attachment: 284404 Committed
r203636
: <
http://trac.webkit.org/changeset/203636
>
WebKit Commit Bot
Comment 11
2016-07-23 00:18:42 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug