diff options
author | Lioncash <mathew1800@gmail.com> | 2019-06-12 17:47:05 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-06-12 17:54:11 -0400 |
commit | 969cd6dc1d60acd98c89815dd53c11bf4dac2518 (patch) | |
tree | 56f5632abd17d87ef128d8029b86438d928bcd97 /src/audio_core/stream.cpp | |
parent | a62088539ed02a8569814601b3b99b713c5d8a34 (diff) |
common/hex_util: Reserve std::string memory ahead of time
Avoids potentially performing multiple reallocations (depending on the
size of the input data) by reserving the necessary amount of memory
ahead of time.
This is trivially doable, so there's no harm in it.
Diffstat (limited to 'src/audio_core/stream.cpp')
0 files changed, 0 insertions, 0 deletions