Closed
Bug 1370274
Opened 8 years ago
Closed 8 years ago
GridOutline component is sending too many requests to the server
Categories
(DevTools :: Inspector, defect, P3)
DevTools
Inspector
Tracking
(firefox55 fixed)
RESOLVED
FIXED
Firefox 55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: zer0, Assigned: zer0)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
I noticed during the development of bug 1359794, that the outline component seems invoking the `_update` method of grid highlighter more often than is expected.
Plus, after a while, especially when transformation are applied, it seems getting slower and slower. Not sure if it's directly related to the messages issue, if it's not we could file a different bug.
I think the problem is that there is no debounce when we leave the cell, but only when we enter in the cell. The mechanism should be the same for both actions, since both are calling an update on the highlighters.
http://searchfox.org/mozilla-central/source/devtools/client/inspector/grids/components/GridOutline.js#132-145
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → zer0
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•8 years ago
|
||
My apologies for the delay, I had this patch ready already this morning but I wanted to reduce the calls to the server even more, especially due the bad perf on OS X when the grid is transformed (See Bug 1371330).
I ended up to don't do anything more here because it was taking too much time.
Comment 4•8 years ago
|
||
mozreview-review |
Comment on attachment 8875787 [details]
Bug 1370274 - adding debouncing to both mouseenter and mouseleave;
https://reviewboard.mozilla.org/r/147196/#review151438
::: devtools/client/inspector/grids/components/GridOutline.js:132
(Diff revision 1)
> }
>
> return height;
> },
>
> - highlightCell(e) {
> + onHighlightCell({target, type}) {
s/{target, type}/{ target, type }
Attachment #8875787 -
Flags: review?(gl) → review+
Updated•8 years ago
|
Priority: -- → P3
Comment hidden (mozreview-request) |
Comment 6•8 years ago
|
||
Looks like this was landed in Bug 1368535.
Updated•8 years ago
|
Target Milestone: --- → Firefox 55
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•