Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: Performance improvements #2661

Merged
merged 3 commits into from
Dec 10, 2024
Merged

lib: Performance improvements #2661

merged 3 commits into from
Dec 10, 2024

Conversation

nfcampos
Copy link
Contributor

@nfcampos nfcampos commented Dec 5, 2024

  • don't create contextvars.Context/asyncio.Task in RunnableSeq (not needed as each step creates it if necessary)
  • don't run in-memory-saver methods in background threads (no point as they hold the gil)
  • avoid calling should_interrupt when no interrupts set

Base automatically changed from nc/5dec/return-multiple-commands to main December 5, 2024 23:16
- don't create contextvars.Context/asyncio.Task in RunnableSeq (not needed as each step creates it if necessary)
- don't run in-memory-saver methods in background threads (no point as they hold the gil)
- avoid calling should_interrupt when no interrupts set
@nfcampos nfcampos merged commit dc0398e into main Dec 10, 2024
59 checks passed
@nfcampos nfcampos deleted the nc/5dec/perf branch December 10, 2024 22:04
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.

1 participant