Commit 2d500117 authored by Committed by Eike ZillerBrowse files
C++: pre-allocate the output buffer.
This prevents a whole lot of re-allocations when the output byte array needs to grow. It also prevents some heap fragmentation for big files. Because the preprocessed output is short lived (it will be parsed immediately after, and then discarded), it is not squeezed to the minimal size. This would result in another allocation. Change-Id: I4974be5144f88cdfc4ddc9d8330200725aa90803 Reviewed-by: hjk <firstname.lastname@example.org> Reviewed-by: Eike Ziller <email@example.com>