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

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

Open
bajtos opened this issue Feb 7, 2020 · 0 comments
Open

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

bajtos opened this issue Feb 7, 2020 · 0 comments

Comments

@bajtos
Copy link
Member

bajtos commented Feb 7, 2020

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.

  • in serverless (function-as-a-service) settings
  • when using test runners providing process-isolation, e.g. node-tap
  • when testing CLI tooling scaffolding new projects and starting the scaffolded code as part of the test
@bajtos bajtos changed the title Module takes too long to load and initialize strong-globalize takes too long to load and initialize Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant