Skip to content

Commit

Permalink
Disable TRegex (Graal) JIT compilation
Browse files Browse the repository at this point in the history
TRegex JIT-ing really doesn't like the UAP workload one bit. It
basically uses 3 cores worth of CPU to do nothing as the runtime is
the same with and without compilation. Sadge.

Might as well cut it off, no sense wasting CPU time on the runners.
  • Loading branch information
masklinn committed Oct 29, 2024
1 parent 6fb7b58 commit de1c9c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ jobs:
artifact: dist/*.tar.gz
- source: wheel
artifact: dist/*.whl
- opts: ""
- python-version: graalpy-24
opts: "--experimental-options --engine.CompileOnly='~tregex re'"
steps:
- name: Checkout working copy
uses: actions/checkout@v4
Expand Down Expand Up @@ -127,6 +130,6 @@ jobs:
name: ${{ matrix.source }}
path: dist/
- name: install package in environment
run: pip install ${{ matrix.artifact || '.' }}
run: python -m pip install ${{ matrix.artifact || '.' }}
- name: run tests
run: pytest -v -Werror -Wignore::ImportWarning --doctest-glob="*.rst" -ra
run: python ${{ matrix.opts }} -m pytest -v -Werror -Wignore::ImportWarning --doctest-glob="*.rst" -ra

0 comments on commit de1c9c8

Please sign in to comment.