]> git.sesse.net Git - skvidarsync/commitdiff
Better comment about the UCA cache.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 11 Nov 2023 15:43:37 +0000 (16:43 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 11 Nov 2023 15:43:37 +0000 (16:43 +0100)
bin/sync.pl

index 14c6a3b3a11d45d40a617a25456bf293b484a7f9..d8866a6c493f1fb3a65b2eab06fb731d39ce6854 100644 (file)
@@ -53,9 +53,8 @@ sub log_timing {
 }
 
 # Unicode::Collate is seemingly slow, so add a cache for each name part
-# (which, of course, only works for equality).
-# Doesn't seem to help the initial one, though; I guess not enough people
-# have the same names.
+# (which, of course, only works for equality). Helps especially in
+# --daemon mode, where even the first request gets a warm cache.
 my %sort_key_cache = ();
 my $sort_key_sp = $uca->getSortKey(' ');