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

performance - improve caching in histogram and graph #55

Merged
merged 4 commits into from
May 15, 2018

Conversation

bkmartinjr
Copy link
Contributor

No description provided.

// d3.scaleLinear().domain([0,1]).range([1,-1])
const glScaleY = scaleLinear([0, 1], [1, -1]);
// Cache a scaled graph
if (!this.scaledGraphVec || this.props.graphVec != nextProps.graphVec) {
Copy link
Contributor

Choose a reason for hiding this comment

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

!== as a rule

nextProps.metadataField
);

this.histogramCache = {};
Copy link
Contributor

Choose a reason for hiding this comment

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

Prefer initialization in the constructor above, (see this.width in this file)

@colinmegill colinmegill merged commit 82a5bae into master May 15, 2018
@colinmegill colinmegill deleted the bkmartinjr-perf3 branch May 15, 2018 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants