T317070 and T215000 both dealt with non-linear performance of getElementsByTagName in PHP DOM's implementation.
Unless someone wants to take on fixing PHP DOM's implementation, we should replace its use in our code bases with Zest::find or Parsoid's DOMCompat::querySelectorAll or DOMCompat::getElementsByTagName both of which are wrappers around Zest.
DOMCompat::findElementsByTagName seems the simplest replacement since it leaves open the possibility of easy switching back if/when PHP DOM perf gets fixed.
Code search reveals Flow, DonationsInterface, Translate, GWToolset, TextExtracts all use this method (https://codesearch.wmcloud.org/search/?q=getElementsByTagName&i=nope&files=php&excludeFiles=)
@Esanders also says: "And also a lint rule to prevent it being used in the future."