Skip to content

A few performance improvements - #2052

Merged
lukastaegert merged 2 commits into
rollup:masterfrom
mourner:slightly-faster
Mar 14, 2018
Merged

A few performance improvements#2052
lukastaegert merged 2 commits into
rollup:masterfrom
mourner:slightly-faster

Conversation

@mourner

@mourner mourner commented Mar 13, 2018

Copy link
Copy Markdown
Contributor

A few minor optimizations:

With this PR, Mapbox GL JS bundle is about 10-12% faster (from 9.5s to 8.5s).

@lukastaegert lukastaegert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great work! Even though it may only be a moderate improvement overall, sourcemap generation is now around 45% faster while your changes to the loops alone improved tree-shaking performance by 25%. I hope to find some time soon to tackle the proto issue soon but this is really moving us forward in a great direction!

@lukastaegert

Copy link
Copy Markdown
Member

@guybedford I assume there is no objection from your side if I put this into the next release?

@lukastaegert lukastaegert added this to the 0.57.0 milestone Mar 14, 2018

@guybedford guybedford left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great to see this!

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.

3 participants