matrix-stack: use GArray instead of GSList for stack
authorRobert Bragg <robert@linux.intel.com>
Mon, 1 Nov 2010 22:07:11 +0000 (22:07 +0000)
committerRobert Bragg <robert@linux.intel.com>
Thu, 4 Nov 2010 18:35:16 +0000 (18:35 +0000)
commit844b5781283560bb99e827c0cbc1d212f21be628
tree1719ddc1d8c8ef3c654149670d2523d7b10cca45
parenta6000533dca20639ec94bd2b0afe8de71382dc65
matrix-stack: use GArray instead of GSList for stack

In some micro-benchmarks testing journal throughput the list
manipulation jumps pretty high in the profile. This replaces the GSList
usage with a GArray instead which is effectively a grow only allocation
that means we avoid ongoing allocations while manipulating the stack
mid-scene.
clutter/cogl/cogl/cogl-matrix-stack.c