Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix grow_stgbuffer() not updating buffer size
The grow_stgbuffer() function, which grows the staging buffer, was not updating the buffer size after reallocating the buffer itself. This caused lots of reallocations because stgwrite() calls this function for every character (!). This also decreases compile times by ~20% (from 10s down to 8s in my setup).
- Loading branch information