[PR #2661] lib: Performance improvements #2839

Closed
opened 2026-02-20 17:47:39 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/2661

State: closed
Merged: Yes


  • 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
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/2661 **State:** closed **Merged:** Yes --- - 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
yindo added the pull-request label 2026-02-20 17:47:39 -05:00
yindo closed this issue 2026-02-20 17:47:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#2839