Optimize the call to browserPrefix() in MotionMark
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Sep 2017 16:20:59 +0000 (16:20 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Sep 2017 16:20:59 +0000 (16:20 +0000)
commitc143647e3dcd07ce559cb55862189052a06fa6a4
tree0a02b7b054aa0ae1f9824e17ecdc754b2497f8ae
parent06998378ad88e070c760f4951b050492bc9a6f80
Optimize the call to browserPrefix() in MotionMark
https://bugs.webkit.org/show_bug.cgi?id=176489

Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2017-09-07
Reviewed by Jon Lee.

This function is expensive and it does not change for the browser. No need
to recalculate it every time it is called; just cache the returned value.

* MotionMark/resources/extensions.js:
(Utilities.browserPrefix):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@221735 268f45cc-cd09-0410-ab3c-d52691b4dbfc
PerformanceTests/ChangeLog
PerformanceTests/MotionMark/resources/extensions.js