]> git.tdb.fi Git - libs/gl.git/commit
Get all blocks for the program before applying them
authorMikko Rasa <tdb@tdb.fi>
Sun, 26 Aug 2012 10:09:44 +0000 (13:09 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 26 Aug 2012 10:22:53 +0000 (13:22 +0300)
commitab83db6f1e31d44ced585119a57fd10896e469cb
treee6d128d582572a1b377c0aced139bd4e2a090f60
parent8ff00c9663371684f69059a548f8a0addca10d5c
Get all blocks for the program before applying them

This way, the correct size for the buffer can be determined right away,
rather than each block resizing it in turn.  Binding the buffer before
applying the blocks also avoids some thrashing.
source/programdata.cpp