diff --git a/doc/release/1.11.0-notes.rst b/doc/release/1.11.0-notes.rst index 580c0c952b74..e60062c81824 100644 --- a/doc/release/1.11.0-notes.rst +++ b/doc/release/1.11.0-notes.rst @@ -36,7 +36,7 @@ DeprecationWarning to error * Non-integers used as index values raise TypeError, e.g., in reshape, take, and specifying reduce axis. -FutureWarning to changed behavior +FutureWarning to changed behavior ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * In ``np.lib.split`` an empty array in the result always had dimension @@ -89,6 +89,13 @@ The function now internally calls the generic ``npy_amergesort`` when the type does not implement a merge-sort kind of ``argsort`` method. +Memory and speed improvements for masked arrays +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Creating a masked array with ``mask=True`` (resp. ``mask=False``) now uses +``np.ones`` (resp. ``np.zeros``) to create the mask, which is faster and avoid +a big memory peak. Another optimization was done to avoid a memory peak and +useless computations when printing a masked array. + Changes =======