Rewrite ORMTable::unprefixFieldNames
authorThiemo Mättig <thiemo.maettig@wikimedia.de>
Mon, 13 Oct 2014 17:07:30 +0000 (19:07 +0200)
committerThiemo Mättig <thiemo.maettig@wikimedia.de>
Mon, 13 Oct 2014 17:07:30 +0000 (19:07 +0200)
commitb913aef726cf9aabb706e64fad03aa8bbd878601
treef9c82769b00ca31c4c1b902f3fe8eb94bb2fd416
parenteab45e37b66582a94e5a7700021e41a59560e665
Rewrite ORMTable::unprefixFieldNames

This method is called a lot (~1000 times each time). It calls
the callback function ~10 times per table, resulting in ~10000
calls of strlen. Which is just not necesarry. The string length does
not change.

Change-Id: I19194f1166da465a1c9ef4b2fb9cdaef4105a6f7
includes/db/ORMTable.php