You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.17.0.txt
+33-31Lines changed: 33 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,30 @@ New features
31
31
- Enable writing complex values to HDF stores when using table format (:issue:`10447`)
32
32
- Enable reading gzip compressed files via URL, either by explicitly setting the compression parameter or by inferring from the presence of the HTTP Content-Encoding header in the response (:issue:`8685`)
33
33
34
+
35
+
.. _whatsnew_0170.gil:
36
+
37
+
Releasing the GIL
38
+
^^^^^^^^^^^^^^^^^
39
+
40
+
We are releasing the global-interpreter-lock (GIL) on some cython operations.
41
+
This will allow other threads to run simultaneously during computation, potentially allowing performance improvements
42
+
from multi-threading. Notably ``groupby`` and some indexing operations are a benefit from this. (:issue:`8882`)
43
+
44
+
For example the groupby expression in the following code will have the GIL released during the factorization step, e.g. ``df.groupby('key')``
Releasing of the GIL could benefit an application that uses threads for user interactions (e.g. ``QT``), or performaning multi-threaded computations. A nice example of a library that can handle these types of computation-in-parallel is the dask_ library.
55
+
56
+
.. _dask: https://dask.readthedocs.org/en/latest/
57
+
34
58
.. _whatsnew_0170.enhancements.other:
35
59
36
60
Other enhancements
@@ -277,14 +301,15 @@ Other API Changes
277
301
- ``Categorical.name`` was removed to make `Categorical` more ``numpy.ndarray`` like. Use ``Series(cat, name="whatever")`` instead (:issue:`10482`).
278
302
279
303
- ``NaT``'s methods now either raise ``ValueError``, or return ``np.nan`` or ``NaT`` (:issue:`9513`)
Releasing of the GIL could benefit an application that uses threads for user interactions (e.g. ``QT``), or performaning multi-threaded computations. A nice example of a library that can handle these types of computation-in-parallel is the dask_ library.
0 commit comments