diff options
author | Julian Andres Klode <jak@debian.org> | 2019-01-04 20:48:06 +0100 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2019-02-04 15:29:09 +0100 |
commit | 780858355914c64793f11860490603c5131c35f1 (patch) | |
tree | 7f0a35d980a457d1be6a49e7e2886755306de9cd /apt-private/private-install.cc | |
parent | 2cc1b3a3ee595c8be761fee309167b8a56393d3e (diff) |
Use std::to_string() for HashStringList::FileSize() getter
This slightly improves performance, as std::to_string() (as in gcc's
libstdc++) avoids a heap allocation. This is surprisingly performance
critical code, so we might want to improve things further in 1.9
by manually calculating the string - that would also get rid of issues
with locales changing string formatting, if any.
Diffstat (limited to 'apt-private/private-install.cc')
0 files changed, 0 insertions, 0 deletions