Skip to content

[CLOSED] Defer most Quick View processing until after delay #6079

@core-ai-bot

Description

@core-ai-bot

Issue by redmunds
Thursday Jan 30, 2014 at 20:19 GMT
Originally opened as adobe/brackets#6697


This is for #6538. This uses the getHoveredEditor() function from@SAPlayer's pull request #6571, so this is a replacement of that PR.

Details:

  • only processes mousemove event in requestAnimationFrame()
  • defers all processing until after setTimeout() delay
  • exception: when Quick View is already being displayed, then processing is immediate

Results:
I did some simple profiling on Win7 using the src/extensions/default/QuickView/unittest-files/test.css file and Process Explorer. I moved mouse over the css rules in that file at an even pace -- so that only mouse processing was executed (i.e. didn't stop long enough to display Quick View).

  • Before: cpu averages ~2%
  • After: cpu averages ~1%

cc:@peterflynn,@jasonsanjose


redmunds included the following code: https://github.com/adobe/brackets/pull/6697/commits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions