commit | b20ca38450e7d783ead31e24588f0bd7e47e8aa9 | [log] [tgz] |
---|---|---|
author | Josh Triplett <josh@freedesktop.org> | Sun Jan 13 05:59:58 2008 -0800 |
committer | Josh Triplett <josh@freedesktop.org> | Sun Jan 13 05:59:58 2008 -0800 |
tree | 63c461d841cc0d74055d0f734c875866360997f7 | |
parent | 314debbf428061a26fd41ba43a8905831dc24b8d [diff] |
Use a local copy of the stats structures in the reader and writer functions The reader and writer functions used their argument as a pointer to a stats structure, and wrote their stats to it directly in memory inside the loop. Use a local variables for stats structures instead and write out the statistics after the loop; this allows the compiler to keep the statistics in registers.