Skip to content

Conversation

@bajtos
Copy link
Member

@bajtos bajtos commented Aug 12, 2016

  • Revert globalization of assert() messages
  • Cache remoting descriptions to speed up tests

See strongloop/strong-globalize#66

@Setogit @superkhau @0candy please review

Before this change:

$ time mocha 
(...)
real    1m21.701s
user    1m21.234s
sys     0m0.970s

After the change:

$ time mocha 
(...)
real    0m28.089s
user    0m27.619s
sys     0m0.736s

bajtos added 2 commits August 12, 2016 13:51
Calling strong-globalize is relatively expensive (about 300
microseconds for each call). When using per-app local registry in
unit-tests, each app creation requires about 500 calls of `g.t` just
for remoting metadata, i.e. about 150ms.

In this commit, we introduce `g.s` that caches the results from
strong-globalize to speed up creation of remoting metadata.
@0candy
Copy link
Contributor

0candy commented Aug 12, 2016

LGTM

@Setogit
Copy link
Contributor

Setogit commented Aug 12, 2016

👍
Filed an issue to strong-globalize inspired by this @bajtos effort: strongloop/strong-globalize#69

@Setogit Setogit removed their assignment Aug 12, 2016
@superkhau
Copy link
Contributor

LGTM

@bajtos bajtos merged commit c83f84c into 2.x Aug 15, 2016
@bajtos bajtos deleted the fix/globalize-perf-2x branch August 15, 2016 06:51
@bajtos bajtos removed the #review label Aug 15, 2016
@bajtos bajtos added this to the #Epic: Globalization milestone Aug 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants