summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorFredrik Höglund <fredrik@kde.org>2008-03-31 21:24:59 +0200
committerFredrik Höglund <fredrik@kde.org>2008-03-31 21:24:59 +0200
commit8074676d2df8d577b443e3fa5e22d7c71c944bd1 (patch)
tree7b6dddf5526a162443ff2625b8aa23da08060fc8 /os
parent93d876891dbba41b920a9a29a5de77f647f43928 (diff)
EXA: Optimize the eviction scanning loop in exaOffscreenAlloc.
Reduce the cost of the inner loop, by keeping a set of pointers to the first and the last areas in the series, subtracting the cost of the first area from the score, and adding the cost of the last area while walking the list. This commit also moves the scanning loop from exaOffscreenAlloc into a separate function. Idea by Michel Dänzer.
Diffstat (limited to 'os')
0 files changed, 0 insertions, 0 deletions