Bug 528107 - investigate performance of retargettable commands
Summary: investigate performance of retargettable commands
Status: NEW
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: Client (show other bugs)
Version: 16.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance, triaged
Depends on:
Blocks:
 
Reported: 2017-12-04 11:03 EST by Michael Rennie CLA
Modified: 2017-12-04 11:04 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2017-12-04 11:03:43 EST
While working on bugs 528093 and 525573 I noticed that the isVisible() call is made a lot, and depending on what the commands do, this makes sense. But in the case of 'format', 'references', 'definition' and any others that simply work on the underlying content type, the commands do too much work.

We should investigate ways to minimize the amount of work done across commands like this to avoid impacting the UI.

An example pain point:

the isVisible of the 'format' command. It walks the content types array over and over again as the isVisible function is called - but it could likely just do that work one time when the input changes and cache the result until the next input change (when the content type might actually change).