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)

defect

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
Blocks: dt-grid
See Also: → 1370275
Assignee: nobody → zer0
Blocks: 1370275
See Also: 1370275
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 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+
Priority: -- → P3
Looks like this was landed in Bug 1368535.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: