globalizejs / globalizejs/globalize

Disabling pluralGenerator call in messageFormatter

Open
#606 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.8k
Forks
585
PR merge metrics
No merged PRs in 30d

Description

Context: pluralGenerator takes 40% of the time spent by messsageFormater in my use case. I'd like to support an option to disable (for perf) for my clients (i'm a client of jquery/globalize).

Is such an option available already? What's the downside of disabling prulalGenerator other than obvious "auto pluralization will be disabled"? Can i assume i can save 40% time by disabling it?

The second largest time is spent by runtimeBind ==> runtimeKey ==> stringHash 30%. It sounds like rquired.

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.