Use consistent language

This commit is contained in:
Andrew Murray 2024-01-01 14:19:16 +11:00
parent 129a4936d3
commit 9bcd477058

View File

@ -91,16 +91,16 @@ Optimized ImageMode.getmode
^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
The lookups made by :py:attr:`~PIL.ImageMode.getmode` are now cached using The lookups made by :py:attr:`~PIL.ImageMode.getmode` are now cached using
:py:func:`functools.lru_cache` instead of a custom cache. Cached calls are 20% :py:func:`functools.lru_cache` instead of a custom cache. Cached calls are 1.2 times as
faster. fast.
Optimized ImageStat.Stat count and extrema Optimized ImageStat.Stat count and extrema
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Calculating the :py:attr:`~PIL.ImageStat.Stat.count` and Calculating the :py:attr:`~PIL.ImageStat.Stat.count` and
:py:attr:`~PIL.ImageStat.Stat.extrema` statistics is now faster. After the :py:attr:`~PIL.ImageStat.Stat.extrema` statistics is now faster. After the
histogram is created in ``st = ImageStat.Stat(im)``, ``st.count`` is 3x as fast histogram is created in ``st = ImageStat.Stat(im)``, ``st.count`` is 3 times as fast on
on average and ``st.extrema`` is 12x as fast on average. average and ``st.extrema`` is 12 times as fast on average.
Encoder errors now report error detail as string Encoder errors now report error detail as string
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^