-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(core): Use memoization when caching zone members
Relates to #988. Zone members (countries) were being newly translated for _every_ call to ZoneService.findAll(). In practice this was resulting in thousands of calls to `translateDeep`. This optimization cuts the calls down by a factor of 5-10x in various scenarios.
- Loading branch information
1 parent
d428ffc
commit 54dfbf4
Showing
2 changed files
with
40 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters