Skip to content

Speed up `apt-cache pkgnames` by remembering the prefix length

The length of the package name prefix was repeatedly calculated here (visible in an objdump), once in the comparison with every known package name.

Provide a minor but easy potential speed-up by remembering this string length, which does not change at runtime.

Merge request reports

Loading