diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-04-14 10:30:01 +1200 |
|---|---|---|
| committer | Chris Forbes <chrisforbes@google.com> | 2016-04-14 10:51:19 +1200 |
| commit | 85834d143caed7cd3cca59d91033c9dcb01b3d31 (patch) | |
| tree | 7dd7986bcfea295f37e3780d3cb4b69d0d39364d /layers/image.cpp | |
| parent | a82b9de2a98c3f65e40586747a9f9fb5486d0f04 (diff) | |
| download | usermoji-85834d143caed7cd3cca59d91033c9dcb01b3d31.tar.xz | |
layers: only construct stringstreams in error paths
These are actually stupidly expensive to construct -- with most of the
cost going to the contained std::locale.
Added up to about 6% of profile on my machine in `smoke -s` with
VK_LAYER_LUNARG_core_validation enabled.
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/image.cpp')
0 files changed, 0 insertions, 0 deletions
