summaryrefslogtreecommitdiff
path: root/apt-pkg/edsp.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-01-08 12:37:58 +0100
committerJulian Andres Klode <jak@debian.org>2016-01-08 12:37:58 +0100
commit4a666d28d7f30f2eb856ffef0ea0343be6cccef1 (patch)
treefdea3937359ee4d035db4a8dde76edf4b1a9e697 /apt-pkg/edsp.h
parent24c7db2edea692c3778c021c053a2316203bfa03 (diff)
AvailableDescriptionLanguages: Use one string for all iterations
Do not create strings within the loop, that creates one string per language and does more work than needed. Instead, reserve enough space at the beginning and assign the prefix, and then resize and append inside the loop. Also call exists with the string itself instead of the c_str(), this means that the lookup uses the size information in the string now and does not have to call strlen() on it.
Diffstat (limited to 'apt-pkg/edsp.h')
0 files changed, 0 insertions, 0 deletions