HomePhabricator

Build lang prefixes list once in removeLanguageLinks()

Authored by Malafaya.

Description

Build lang prefixes list once in removeLanguageLinks()

Instead of just checking whether validLanguageLinks() is
empty, it will build a list of language prefixes (including
the obsolete ones) once and then reuses that list to remove
all links which use one of the prefixes.
This indirectly reduces the runtime as it'll won't call
validLanguageLinks() twice if it's not empty.

Bug: T112256
Change-Id: Ie8462010561b510729e04a54447063957bd975f4

Details

Committed
MalafayaSep 11 2015, 9:06 PM
Parents
rPWBCc27464e40b5e: Merge "[FIX] fixes: Reintroduce filename attribute"
Branches
Unknown
Tags
Unknown
ChangeId
Ie8462010561b510729e04a54447063957bd975f4