[PR #1743] [MERGED] perf: Implement fast path in Runner for single-task steps #2264

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/1743
Author: @nfcampos
Created: 9/17/2024
Status: Merged
Merged: 9/17/2024
Merged by: @nfcampos

Base: mainHead: nc/17sep/runner-fast-path


📝 Commits (1)

  • 76ff7c3 perf: Implement fast path in Runner for single-task steps

📊 Changes

2 files changed (+59 additions, -36 deletions)

View changed files

📝 libs/langgraph/langgraph/pregel/__init__.py (+9 -2)
📝 libs/langgraph/langgraph/pregel/runner.py (+50 -34)

📄 Description

  • if the current step has a single task then we can execute it inline, instead of moving it to asyncio task / bg thread

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraph/pull/1743 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 9/17/2024 **Status:** ✅ Merged **Merged:** 9/17/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `nc/17sep/runner-fast-path` --- ### 📝 Commits (1) - [`76ff7c3`](https://github.com/langchain-ai/langgraph/commit/76ff7c3f1a415d63db0fe2614562df445c040788) perf: Implement fast path in Runner for single-task steps ### 📊 Changes **2 files changed** (+59 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/langgraph/pregel/__init__.py` (+9 -2) 📝 `libs/langgraph/langgraph/pregel/runner.py` (+50 -34) </details> ### 📄 Description - if the current step has a single task then we can execute it inline, instead of moving it to asyncio task / bg thread --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-20 17:46:40 -05:00
yindo closed this issue 2026-02-20 17:46:41 -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#2264