diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-01-14 22:18:20 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-15 14:23:46 +1300 |
commit | 54898b15ffbcd92b839a450a943cfe0ffd8b6799 (patch) | |
tree | ab9a8283ad2de5d20150f3ec017a97f842ec6353 /subsurface.pro | |
parent | dc7397b06e9a555aac707ede1aea699ca3dad230 (diff) | |
download | subsurface-54898b15ffbcd92b839a450a943cfe0ffd8b6799.tar.gz |
Do not free the membuffer, reuse it
This is an attempt to make fewer calls to alloc functions when the mouse
is moving.
We were creating a membuffer, filling it (malloc / realloc), then freeing
it just after use. but we could simply hold that allocated area and reuse
it again.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface.pro')
0 files changed, 0 insertions, 0 deletions