QGIS/scripts
Nyall Dawson d4a2dddac5 Tag some inexpensive, frequently called methods with the HoldGIL annotation
This prevents the Python GIL from being released before calling the method
(which is the default behaviour). For very cheap to call c++ methods the
cost of releasing the GIL can outweigh the cost of the c++ call, which means
it's more efficient to retain the hold on the GIL.

Ideally we'd do this everywhere, and switch to an explicit ReleaseGIL
annotation on functions which are slow or risky (raise exceptions, or
do something which can cause a GIL deadlock). But those are very tricky
to identify, so instead just explicitly hold the gil on cheap methods
which are likely to be called many times and could have an impact on
script performance.
2020-09-18 04:34:57 +10:00
..
2020-09-17 08:12:14 +02:00
2020-05-05 23:28:48 +02:00
2020-06-13 16:49:14 +10:00
2019-11-03 19:00:08 +01:00
2020-06-25 14:34:52 +02:00
2020-06-13 16:48:38 +10:00
2020-05-05 22:39:53 +02:00
2020-06-15 12:10:00 +01:00
2020-06-18 21:19:18 +02:00
2020-05-11 15:46:59 +02:00