summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-03-30 12:38:38 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-03-30 12:38:38 +0200
commit6dc60370a750334cb701386cfa4ef9719db9078a (patch)
treeda472df5380711af32eefa61c6220ed2520ade6d /debian
parentb569b4650c647c3aef5341c40d208a37211b57aa (diff)
replace every call to toupper with one to our own tolower_ascii
This sounds like a premature optimization and since Mr. Knuth we all know that they are the root of all evil - but, and here it starts to be interesting: As the tolower_ascii method is by far the most called method we have (~60 Mio. times) and as we compare only strings containing ascii characters (package names, configuration options) using our own method reduces execution time of APT by 4% plus it avoids that the locale settings can influence us.
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog2
1 files changed, 2 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 17affee4f..bd1fda316 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -60,6 +60,8 @@ apt (0.7.26) UNRELEASED; urgency=low
* doc/po/de.po:
- correct a few typos in the german manpage translation.
Thanks to Chris Leick and Georg Koppen! (Closes: #574962)
+ * apt-pkg/contrib/strutl.cc:
+ - convert all toupper calls to tolower_ascii for a little speedup
[ Julian Andres Klode ]
* cmdline/apt-mark: