Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance for generic assay selection in add charts workflow #4143

Merged
merged 2 commits into from
Jan 24, 2022

Conversation

dippindots
Copy link
Member

@dippindots dippindots commented Jan 21, 2022

Partial Fix cBioPortal/cbioportal#9155
This will improve performance for generic assay selection in study view and oncoprint

Describe changes proposed in this pull request:

Testing:
Previous: link to current
New: link to pr preview

Select Phosphosite Quantification for testing:
image

@inodb inodb requested a review from alisman January 21, 2022 19:44

export default class OptimizedOption extends React.Component<any> {
public render() {
delete this.props.innerProps.onMouseMove;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious what this is for

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alisman This is because the mouse move event and mouseover event will force the react select component to iterate the whole list of options, it will not impact loading speed, but when you move between options, you will notice significant lagging doing so.
And since these two events are not very important, we can just remove those to get a speedy response.

@alisman alisman merged commit 6a5c7b3 into cBioPortal:master Jan 24, 2022
@alisman alisman changed the title Improve performance for Generic Assay Selection Improve performance for generic assay selection in add charts workflow Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimizing dropdown menu for generic assays
2 participants