Skip to content

Improving performances with hundreds of segments#5

Merged
thom4parisot merged 5 commits intomasterfrom
feature-5-segments-performance
Jan 28, 2014
Merged

Improving performances with hundreds of segments#5
thom4parisot merged 5 commits intomasterfrom
feature-5-segments-performance

Conversation

@thom4parisot
Copy link
Contributor

As reported by @JamesHarrison, if we try to add 300 segments, it has a major performance hit on the rendering.

Investigate a way to batch the segments drawing/rendering.

@chrisfinch
Copy link

👍

thom4parisot and others added 5 commits January 24, 2014 17:54
- basically removing an always encountered `else` path
- applying proper Array function as it's supposed to be available in all browsers using Canvas
- adding sinon for stubs
- minor tweaks, like `==` -> `===` or parenting an anonymous function
Also removed an uneeded call for drawing, having a *2 impact.
thom4parisot pushed a commit that referenced this pull request Jan 28, 2014
@thom4parisot thom4parisot merged commit 5e7fae4 into master Jan 28, 2014
@thom4parisot thom4parisot deleted the feature-5-segments-performance branch January 28, 2014 13:52
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.

2 participants