Merge "LanguageNameSearch: do not mix different scripts in same buckets"

This commit is contained in:
jenkins-bot
2016-08-09 04:02:41 +00:00
committed by Gerrit Code Review
2 changed files with 13691 additions and 13829 deletions

View File

@@ -46,7 +46,15 @@ class LanguageNameSearch {
}
public static function getIndex( $name ) {
return self::getCodepoint( $name ) % 1000;
$codepoint = self::getCodepoint( $name );
if ( $codepoint < 4000 ) {
// For latin etc. we need smaller buckets for speed
return $codepoint;
} else {
// Try to group names of same script together
return $codepoint - ( $codepoint % 1000 );
}
}
/**

File diff suppressed because it is too large Load Diff