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

Use partially evaluated ux_language_text_source functions #212

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

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)

@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.

3 participants