strongloop / strong-globalize

strong-globalize is built on Unicode CLDR and jquery/globalize and implements automatic extraction of strings from JS source code and HTML templates, lint the string resource, machine-translate them in seconds. In runtime, it loads locale and string resource into memory and provides a hook to persistent logging.
Other
25 stars 16 forks source link

strong-globalize takes too long to load and initialize #158

Open bajtos opened 4 years ago

bajtos commented 4 years ago

At the moment, it takes about 200-300ms to load strong-globalize module.

$ cd packages/runtime
$ time node -e "require('.')"

real    0m0.312s
user    0m0.159s
sys 0m0.081s

This is makes it impractical to use strong-globalize-powered frameworks like LoopBack when new Node.js processes are frequently created, e.g.