Skip to content

Commit

Permalink
print features, disable heap verification
Browse files Browse the repository at this point in the history
  • Loading branch information
nulano committed Oct 2, 2022
1 parent dfe9d93 commit ac82d26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,6 @@ jobs:
& $env:pythonLocation\python.exe selftest.py --installed
shell: pwsh

# skip PyPy for speed
- name: Enable heap verification
if: "!contains(matrix.python-version, 'pypy')"
run: |
& reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\python.exe" /v "GlobalFlag" /t REG_SZ /d "0x02000000" /f
- name: Test Pillow
run: |
path %GITHUB_WORKSPACE%\\winbuild\\build\\bin;%PATH%
Expand Down
5 changes: 5 additions & 0 deletions comparison.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import time

from PIL import features

start = time.time()
i = 0
while i < 100000000:
i += 1
print("Comparison:", time.time() - start)

features.pilinfo(supported_formats=False)

0 comments on commit ac82d26

Please sign in to comment.