Details
Description
It appears that QGestureManager::filterEventThroughContexts() is called for every event, and does considerable processing for every event. Surely it is only necessary to do processing for certain event types and can return early for the vast majority of events.
According to callgrind, using a simple QML application, 17% of instructions are spent in this function.