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

Feature: array option #22

Merged
merged 4 commits into from
Jan 30, 2016
Merged

Feature: array option #22

merged 4 commits into from
Jan 30, 2016

Commits on Jan 30, 2016

  1. Add array option and move "joinResult" check into assemble

    This adds flexibility and reduces overhead for the
    large majority of translations where no replacements
    are performed.
    maranomynet committed Jan 30, 2016
    2 Configuration menu
    Copy the full SHA
    3830152 View commit details
    Browse the repository at this point in the history
  2. Boost performance

    By approximately...
    
     * 8x for `t(key, repl)`
     * 3x for `t.arr(key, repl)`
    maranomynet committed Jan 30, 2016
    2 Configuration menu
    Copy the full SHA
    14dbf5d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    184aa40 View commit details
    Browse the repository at this point in the history
  4. Revert back to slice when assembling arrays

    This seems to dent performance by 50% on Chrome,
    but boosts performance by 450% on Firefox.
    maranomynet committed Jan 30, 2016
    Configuration menu
    Copy the full SHA
    35bd125 View commit details
    Browse the repository at this point in the history