diff options
author | Julian Andres Klode <jak@debian.org> | 2016-09-28 00:05:31 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-11-22 22:58:19 +0100 |
commit | c0723bf1a60daf45096998d4ae9feee3c44343f8 (patch) | |
tree | 5dfdfba820dbe501d1a6bf2fafbcba125facd027 /debian | |
parent | f378b41f9ab2493bcbc5892d482b18826b0b84c0 (diff) |
debListParser: Micro-optimize AvailableDescriptionLanguages()
Generating a string for each version we see is somewhat inefficient.
The problem here is that the Description tag names are longer than
15 byte, and thus require an allocation on the heap, which we should
avoid.
It seems reasonable that 20 characters works for all languages codes
used for archive descriptions, but if not, there's a warning, so
we'll catch that.
This should improve performance by about 2%.
Diffstat (limited to 'debian')
0 files changed, 0 insertions, 0 deletions