codeflash-ai[bot]
fb9e1791eb
⚡ ️ Speed up Stat._getmedian() by 54%
...
The function can be optimized by pre-calculating the histogram and its length, using enumerate for iterating over `self.bands` instead of using indexing, and utilizing iterator in the inner loop for faster execution.
In this version of the code, the `for` loop is replaced with `enumerate` enumeration that creates a counter for every iteration making the code run faster. Furthermore, to make sure we do not overflow the histogram array, we use `min` function when slicing it.
These changes result in a faster execution because Python's enumerate function is more efficient in terms of CPU usage compared to normal iteration, and it avoids the use of an extra index variable. Memory usage is also optimized because we are avoiding creating additional variables and lists unnecessarily.
2024-03-19 01:08:40 +00:00
Hugo van Kemenade
b3edfb08ce
Merge pull request #7885 from hugovk/update-release-notes
2024-03-17 19:22:13 +02:00
Hugo van Kemenade
e57fb3e819
Merge pull request #115 from radarhere/update-release-notes
2024-03-17 13:18:05 +02:00
Andrew Murray
0c436023a0
Corrected heading
2024-03-17 22:06:56 +11:00
Andrew Murray
73bb28c866
Removed blank lines
2024-03-17 21:59:57 +11:00
Andrew Murray
4f677f2183
Reordered sections to match template
2024-03-17 21:59:46 +11:00
Andrew Murray
d2dfb2f87f
Swap order to match description
2024-03-17 21:43:04 +11:00
Andrew Murray
4ef6e4ef9b
Highlight code
2024-03-17 21:41:55 +11:00
Andrew Murray
b3c1937456
Changed wording
2024-03-17 21:37:31 +11:00
Andrew Murray
fe06d419fc
Added heading
2024-03-17 18:30:56 +11:00
Andrew Murray
9cf0ece464
Changed heading level to be consistent
2024-03-17 18:18:04 +11:00
Andrew Murray
5fd4ad4aa0
Corrected CVEs being split into heading and text
2024-03-17 18:16:52 +11:00
Andrew Murray
5208712b49
Added "API Additions" section
2024-03-17 18:12:15 +11:00
Andrew Murray
3b68a56c10
Remove CVE already mentioned in heading
2024-03-17 18:10:39 +11:00
Andrew Murray
1528ac1a45
Consistently highlight filenames in headings
2024-03-17 18:05:07 +11:00
Andrew Murray
c7e4014411
Fixed heading
2024-03-17 18:02:39 +11:00
Hugo van Kemenade
b25a054241
Update release notes
2024-03-17 01:17:38 +02:00
Hugo van Kemenade
2568fd891f
Remove listing of newly-added release notes in 10.4 release notes
2024-03-16 20:29:48 +02:00
Jeffrey A. Clark
913dc60d5d
Merge pull request #7877 from python-pillow/7864-backfill
...
Backfill release notes with security fix details
2024-03-16 06:06:42 -04:00
Andrew Murray
b795d4c59e
Update CHANGES.rst [ci skip]
2024-03-16 18:59:51 +11:00
Alex Clark
e7d8774d70
Wording
2024-03-15 14:20:12 -04:00
Alex Clark
115179e5a6
Update release notes for #7864
2024-03-15 14:08:48 -04:00
Hugo van Kemenade
794a7d691f
Merge pull request #7881 from radarhere/rounded_rectangle
2024-03-15 17:43:47 +02:00
Alex Clark
5b3dabb3a0
Add release notes for 2.6.0 for #7864
2024-03-15 10:27:29 -04:00
Jeffrey A. Clark
4438305a95
Update docs/releasenotes/7.1.0.rst
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:03:19 -04:00
Alex Clark
45975e482d
Update release notes to match template for #7864
2024-03-15 10:01:42 -04:00
Alex Clark
b5f77799ca
Update release notes to match template for #7864
2024-03-15 10:01:42 -04:00
Alex Clark
180f37b18e
Update release notes to match template for #7864
...
- Categorized previously uncategorized notes under ``Other Changes``
- TODO: Fix categorization of notes in ``Other Changes`` that belong in other categories
2024-03-15 10:01:42 -04:00
Alex Clark
f316fd9c7a
Restore and update 3.1.1 release notes for #7864
...
- Restore accidentally overwritten contents
- Update to match updated template
2024-03-15 10:01:42 -04:00
Alex Clark
0ea144b087
Update 3.1.1, 8.1.1 release notes for #7864
2024-03-15 10:01:42 -04:00
Alex Clark
ae5f1de624
Back fill release notes for #7864
...
- Back fill release notes for 3.1.1
- Add credits to 2.3.2, 2.5.2
2024-03-15 10:01:42 -04:00
Alex Clark
ad134c63fa
Combine CVEs
2024-03-15 10:01:42 -04:00
Alex Clark
15deb71c3a
80 char wrap + file name tick for #7864
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
69a4e0d4c9
Update docs/releasenotes/6.2.0.rst
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
7b485c769c
Update docs/releasenotes/6.2.0.rst
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
e97722b7ce
Update docs/releasenotes/6.2.0.rst
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
bae0c988e6
Update docs/releasenotes/8.1.2.rst
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
4d81ec804a
Update docs/releasenotes/8.2.0.rst
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
7b1c39cebe
Update docs/releasenotes/9.0.0.rst
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
pre-commit-ci[bot]
3aefe92bdf
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-03-15 10:01:42 -04:00
Alex Clark
c69dcc1c29
Fix headers and retro-add notes for #7864
...
- Include CVE link in title (via @hugovk)
- Retro-add release notes for 2.3.2, 2.5.2 for CVE-2014-3589
2024-03-15 10:01:42 -04:00
Alex Clark
f61e184ab0
Fix based on 29a361d60ead196695523212dbb08a3ec4ca4b0d
2024-03-15 10:01:42 -04:00
Alex Clark
92f088919f
Fix template based on 29a361d60ead196695523212dbb08a3ec4ca4b0d
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
f77273db8f
Update docs/releasenotes/10.0.0.rst
...
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
1f117339bd
Update docs/releasenotes/10.2.0.rst
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
deca2dd5fc
Update docs/releasenotes/6.2.0.rst
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
a78fbfed37
Update docs/releasenotes/6.2.2.rst
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
914db6c230
Update docs/releasenotes/2.3.1.rst
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
a200d716e8
Update docs/releasenotes/2.3.1.rst
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
pre-commit-ci[bot]
20d451b359
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-03-15 10:01:42 -04:00