Cache QMetaMethods that are invoked on hot paths.

Review Request #122109 - Created Jan. 17, 2015 and submitted

Information
Volker Krause
kitemmodels
master
53ab224...
Reviewers
kdeframeworks
mwolff

QMetaObject::invokeMethod calls QMetaObject::indexForMethod internally,
which is rather expensive. So look up the method once, and invoke it
via QMetaMethod directly.

Tested and measured with the KRFPM usage in GammaRay, saves about 5% of total application CPU cost according to callgrind.

Milian Wolff
Volker Krause
Review request changed

Status: Closed (submitted)

Loading...