Andrew Murray
e2a96a5c2c
Only import distutils when type checking
2025-01-31 10:29:30 -05:00
pre-commit-ci[bot]
cff21412c5
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2025-01-31 10:29:30 -05:00
Kevin Newton
9b130e6d6c
Reduce memory arena contention
...
Previously there was one memory arena for all threads, making it
the bottleneck for multi-threaded performance. As the number of
threads increased, the contention for the lock on the arena would
grow, causing other threads to wait to acquire it.
This commit makes it use 8 memory arenas, and round-robbins how
they are assigned to threads. Threads keep track of the index that
they should use into the arena array, assigned the first time the
arena is accessed on a given thread.
When an image is first created, it is allocated from an arena.
When the logic to have multiple arenas is enabled, it then keeps
track of the index on the image, so that when deleted it can be
returned to the correct arena.
Effectively this means that in single-threaded programs, this
should not really have an effect. We also do not do this logic if
the GIL is enabled, as it effectively acts as the lock on the
default arena for us.
As expected, this approach has no real noticable effect on regular
CPython. On free-threaded CPython, however, there is a massive
difference (measuring up to about 70%).
2025-01-31 10:29:30 -05:00
Hugo van Kemenade
793e1fcba2
Merge pull request #8709 from radarhere/seek
2025-01-31 14:11:07 +02:00
Hugo van Kemenade
b03f143df1
Merge pull request #8701 from radarhere/stroke_outside
2025-01-31 13:35:22 +02:00
Hugo van Kemenade
84adbe5da8
Support saving PNG cICP chunk ( #8704 )
2025-01-31 13:24:08 +02:00
Andrew Murray
e4f2a4a291
Merge pull request #8717 from radarhere/none
...
Use Py_RETURN_NONE macro when possible
2025-01-30 22:27:42 +11:00
Andrew Murray
f598c03233
Removed unused file
2025-01-29 17:33:55 +11:00
Aleksandr Karpinskii
849768df7a
Remove unused declaration
2025-01-28 20:40:43 +11:00
Andrew Murray
a9d05a1e51
Fixed unclosed file warnings ( #8705 )
...
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-01-27 22:59:44 +02:00
Andrew Murray
e19a1496c2
Use monkeypatch ( #8707 )
...
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-01-27 12:17:51 +02:00
Aleksandr Karpinskii
e7ae4aaad0
Use Py_RETURN_NONE macro when possible
2025-01-27 18:17:03 +11:00
Andrew Murray
569b785371
Updated harfbuzz to 10.2.0 ( #8688 )
...
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-01-25 09:04:52 +02:00
Hugo van Kemenade
0bfaba1dca
Merge pull request #8711 from radarhere/xz
...
Updated xz to 5.6.4
2025-01-24 23:01:30 +02:00
Hugo van Kemenade
7cd98e8b7c
Merge pull request #8712 from radarhere/libpng
...
Updated libpng to 1.6.46
2025-01-24 23:00:59 +02:00
Hugo van Kemenade
6973d6968f
Merge pull request #8710 from radarhere/libimagequant
...
Updated libimagequant to 4.3.4
2025-01-24 23:00:30 +02:00
Andrew Murray
16a8e2bde4
Updated xz to 5.6.4
2025-01-24 23:46:14 +11:00
Andrew Murray
f52dbe749b
Updated libpng to 1.6.46
2025-01-24 23:46:03 +11:00
Andrew Murray
9d4232101f
Updated libimagequant to 4.3.4
2025-01-24 23:40:21 +11:00
Hugo van Kemenade
51df14282f
Merge pull request #8713 from radarhere/22_04
2025-01-24 14:38:30 +02:00
Andrew Murray
e31441fc41
Use Ubuntu 22.04 for 24.04 ppc64le and s390x
2025-01-24 19:51:07 +11:00
Andrew Murray
8a90975c14
Seek relative to current position
2025-01-22 23:14:34 +11:00
Hugo van Kemenade
58dd4a7dac
Merge pull request #8702 from radarhere/imagefile_fp
2025-01-20 19:29:05 +02:00
Andrew Murray
427244877b
Support saving cICP chunk
2025-01-19 15:09:12 +11:00
Andrew Murray
0318304f9a
Do not draw normal text onto stroke text if they are the same color
2025-01-18 21:58:15 +11:00
Andrew Murray
8d9279dd73
Only use outside border of stroke in text()
2025-01-18 21:58:04 +11:00
Andrew Murray
c78d23d547
Moved _close_fp into ImageFile
2025-01-18 21:22:44 +11:00
Andrew Murray
4ff18e03b8
Moved file pointer handling into ImageFile close
2025-01-18 20:57:04 +11:00
Hugo van Kemenade
cf7dd2f0e9
Merge pull request #8700 from radarhere/ubuntu
2025-01-18 11:10:40 +02:00
Andrew Murray
ba606622b4
Updated Ubuntu arm to 24.04 with arm64 runner
2025-01-18 13:53:39 +11:00
Hugo van Kemenade
a92a664ee5
Merge pull request #8699 from radarhere/mozjpeg
2025-01-17 23:53:04 +02:00
Andrew Murray
284297755a
Updated capitalization
2025-01-18 07:55:49 +11:00
Andrew Murray
e79b298443
Merge branch 'main' into mozjpeg
2025-01-18 07:54:07 +11:00
Andrew Murray
30c4ad484c
Updated capitalization
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-01-18 07:48:15 +11:00
Hugo van Kemenade
4f7510b77b
Merge pull request #8689 from radarhere/get_child_images
2025-01-17 22:29:50 +02:00
Hugo van Kemenade
85a6df534c
Merge pull request #8698 from radarhere/arm64
2025-01-17 21:50:35 +02:00
Hugo van Kemenade
7446348b73
Merge pull request #8525 from hugovk/gha-windows-32-bit
2025-01-17 20:46:08 +02:00
Andrew Murray
6a0ac411e2
Added mozjpeg documentation
2025-01-17 18:57:12 +11:00
Andrew Murray
be8e55d28d
Added deprecation warning
2025-01-17 18:34:23 +11:00
Andrew Murray
176c5b3749
Added pypy to CIBW_ENABLE
2025-01-17 11:51:42 +11:00
Andrew Murray
a04e76a84f
Use arm64 Linux runners
2025-01-17 11:51:21 +11:00
Andrew Murray
d2122ab17f
Merge pull request #8696 from radarhere/numpy
...
Test Windows amd64 wheels with NumPy
2025-01-17 08:45:08 +11:00
Hugo van Kemenade
ade99aaa90
Merge branch 'main' into gha-windows-32-bit
2025-01-16 17:01:59 +02:00
Hugo van Kemenade
bff83cff59
Merge pull request #8568 from radarhere/fixifd
2025-01-16 16:33:42 +02:00
Andrew Murray
c67ed4678b
Moved strings inside debug statement
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-01-16 23:48:44 +11:00
Hugo van Kemenade
e59549f4e5
Merge pull request #8695 from radarhere/miniconda
2025-01-16 14:12:20 +02:00
Hugo van Kemenade
df7e42eef1
Merge pull request #8681 from radarhere/types
2025-01-16 14:00:25 +02:00
Andrew Murray
536aee5bbd
Test Numpy on amd64
2025-01-16 22:12:53 +11:00
Andrew Murray
e70c821436
Removed miniconda CPPFLAGS
2025-01-16 20:57:49 +11:00
Hugo van Kemenade
84d58a0282
Merge pull request #8694 from radarhere/exceptions
2025-01-14 17:04:39 +02:00