D
D
Dima Zherebko2017-01-22 00:16:34
Angular
Dima Zherebko, 2017-01-22 00:16:34

What are the options for optimizing Angular 2 applications?

What are the options for optimizing angular 2 applications.
There is something like a large form of 20 groups of questions, 20 questions each. It is necessary to carry out calculations for each group, depending on the answer to the question in the group.
So far, I've solved rendering problems by adding OnPush and calling detectChanges in places where it was necessary.
Now I have two options for optimization:
1. Try to screw immutable js with redux and it seems to speed up rendering, but I'm not very sure about it + a big piece of work.
2. Make a virtual rendering and display only the part that should be visible, but there are problems with the fact that questions and groups can be rendered recursively and this will not always work adequately (for example, there can be only one group and 200 questions).
In general, I would like advice on optimization.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lega, 2017-01-22
@lega

20 question groups of 20 questions each

400-800 watts - no load
If your calculations slow down, then Angular has nothing to do with it, it is needed to manipulate the view

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question