diff options
| author | Christian Tismer <tismer@stackless.com> | 2020-02-11 10:12:32 +0100 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2020-03-03 10:12:46 +0000 |
| commit | 50f382579d1323817165d85bf88a394328a4e9a0 (patch) | |
| tree | b1f610626d0a6d17aacb3aa86372b44c10b2272c /examples/scriptableapplication/pythonutils.cpp | |
| parent | 4a8a2713433154aee21f1f83ef3e9e7dc9466275 (diff) | |
Avoid the GIL in non-overridden Methods
In order to get better performance, we try to avoid allocating the
GIL when methods have no override with a Python function.
Every class gets an associated bool array that records functions
where no override was found. On second call of a function,
the GIL is avoided by this flag.
Update 2020-02-06:
The result is very promising when combined with a drastic
reduction of Py_(BEGIN|END)_ALLOW_THREAD macro calls.
So this could become the solution when combined with a good
reduction!
The Python 2 bug was circumvented by not generating the
additional Py_tp_setattro functions for class QQuickItem.
Task-number: PYSIDE-803
Change-Id: I0fe36edc5610b2d51bbb05f1b7507beee5088c83
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/scriptableapplication/pythonutils.cpp')
0 files changed, 0 insertions, 0 deletions
