Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-03-20 08:38:20 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-05-22 15:34:18 +0200
commiteeacd90bdb71cebcdfb8d285254d7e42ddc4ff79 (patch)
treebe4a9fd0f99e7249c696afa5623ce3df4b3c880b /examples/opengl/threadedqopenglwidget/threadedqopenglwidget.pyproject
parent5587fe5f0a1179de1402440789c34ff87788abfa (diff)
Speed up invocation of overridden functions
Cache the function found (extracted from the callable) instead of doing lookups and MRO search each time. Use Py_None (unreferenced) to indicate the method is not overridden. Reconstruct the callable from the function. Move the duckpunching check before the cache to avoid reference issues. Achieves a speedup of roughly 3.8->2.6s (33%). Task-number: PYSIDE-2916 Change-Id: I6deec60d14ed7030284e0e02249ea96df49e5740 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/opengl/threadedqopenglwidget/threadedqopenglwidget.pyproject')
0 files changed, 0 insertions, 0 deletions