We have learned much about Qt classes and their pitfalls and a couple of techniques for working with strings. But it is always said that the choice of algorithms is the most important part for influencing performance. We will try to give some more high-level advice on that to wrap up for this chapter.
Optimizing with algorithms and data structures
Optimizing with algorithms
The basic rule for optimizing your algorithm could be stated as, "Don't repeat yourself," or rather, "Don't repeat computations." You can do it in several ways, for example by:
- Omitting work using knowledge about the structure of the problem: For example, divide a task into subtasks and combine the results.
When you are doing...