Optimizing Software Applications for Power: Part 8 (of 13)

Part 8: Example 2 (Reducing Computation) - Reduce data size

The amount of computation performed is not only a function of the algorithm used, but of the input data size to which it will be applied. Consider, for example, an image archive and browsing application. Search, comparison, and browsing operations might make use of lower resolution image versions and avoid full resolution computations until absolutely necessary. Storage schemes can often be treated hierarchically to greatly reduce the set of objects involved in a particular traversal operation. In general, developers should look for ways to minimize the data size needed to support a given functionality, performing full computations only when called upon to do so.

Para obter informações mais completas sobre otimizações do compilador, consulte nosso aviso de otimização.