You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[x] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:
Current behavior
MessageFormatTranspiler.transpile method takes a lot of time almost 3ms.
Expected behavior
Messages can be pre-transpiled when translations are set or loaded. Then generated closure can be memoized. To not parse them with every rerender.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Better performance
Environment
Angular version: 6.1.10
Browser:
- [x] Chrome (desktop) version 85
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Node version: 10.22.0
- Platform: Mac
Others:
The text was updated successfully, but these errors were encountered:
I'm submitting a...
Current behavior
MessageFormatTranspiler.transpile
method takes a lot of time almost 3ms.Expected behavior
Messages can be pre-transpiled when translations are set or loaded. Then generated closure can be memoized. To not parse them with every rerender.
Minimal reproduction of the problem with instructions
https://stackblitz.com/edit/transloco-example-izuqre?file=src/app/app.component.ts
What is the motivation / use case for changing the behavior?
Better performance
Environment
The text was updated successfully, but these errors were encountered: