Skip to content

Improve performance by using the async REST API client and multithreading#177

Draft
ewuerger wants to merge 4 commits intomainfrom
performance-improvements-async
Draft

Improve performance by using the async REST API client and multithreading#177
ewuerger wants to merge 4 commits intomainfrom
performance-improvements-async

Conversation

@ewuerger
Copy link
Copy Markdown
Collaborator

@ewuerger ewuerger commented Aug 12, 2025

In order that the multi threading is actually used you need to do the following things:

  1. Install python3.14t (via uv: uv sync --no-default-groups --python=cp314t)
  2. Patch the lxml version in py-capellambse with a python3.14t compatible wheel from here: Support freethreading Python lxml/lxml#477 (comment)
  3. uv add /path-to/lxml-7.0.0a0-cp314-cp314t-macosx_10_13_universal2.whl --python=cp314t
  4. uv sync --no-default-groups --python=cp314t
  5. uv run python -Xgil=0 -m pytest

This PR is currently requires py-capellambse #604.

@ewuerger ewuerger force-pushed the performance-improvements-async branch from 3783743 to 6d9d05c Compare November 5, 2025 15:54
@ewuerger ewuerger requested a review from micha91 November 5, 2025 15:57
@ewuerger ewuerger self-assigned this Nov 5, 2025
@ewuerger ewuerger marked this pull request as ready for review November 5, 2025 16:12
@ewuerger ewuerger marked this pull request as draft November 5, 2025 16:12
@ewuerger ewuerger changed the title Improve performance by using the async REST API client and multiprocessing Improve performance by using the async REST API client and multithreading Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants