Improves language parser #35

Merged
merged 1 commit into from Jan 26, 2014

Conversation

Projects
None yet
2 participants
Contributor

kostyantyn commented Jan 26, 2014

  1. If header is malformed, pre-cache empty array instead of parsing it each time
  2. Validate locale and type cast its quality during first map iteration to reduce number of operations
  3. Split locales by string "," instead of using regex /,/ to increase performance
@kostyantyn kostyantyn Improves language parser
1. If header is malformed, pre-cache empty array instead of parsing it each time
2. Validate locale and type cast its quality during first map iteration to reduce number of operations
3. Split locales by string "," instead of using regex /,/ to increase performance
ce19295
Collaborator

DouweM commented Jan 26, 2014

That looks great, thanks a lot! I'll pull it in when I'm at my computer tonight.

@DouweM DouweM added a commit that referenced this pull request Jan 26, 2014

@DouweM DouweM Merge pull request #35 from kostyantyn/master
Improves language parser
0432aaf

@DouweM DouweM merged commit 0432aaf into iain:master Jan 26, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment