Skip to content

Conversation

@hjanetzek
Copy link
Member

This change avoids some string allocations when ux_language/fallback is defined, making it slightly more efficient (at least with duktape)

@hjanetzek hjanetzek force-pushed the optimize-language-function branch from ffe5a52 to cade527 Compare November 21, 2016 16:00
@nvkelso nvkelso self-assigned this Nov 21, 2016
@hjanetzek
Copy link
Member Author

hjanetzek commented Nov 28, 2016

Looking at it again now: This change would break the fast-path for language updates I suggested :)

Edit: no this would still work - since on ES our JS StyleContext would need to be recreated after global changes.

'The first self-transforming map style'!

@nvkelso
Copy link
Member

nvkelso commented Dec 9, 2016

I think I understand what's going on in this PR, but requesting that @bcamper gives it some pro-level JavaScript review.

@nvkelso nvkelso requested a review from bcamper December 9, 2016 17:49
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.

4 participants