[PR #1732] [MERGED] perf: In PregelLoop, only emit stream values requested by caller #2258

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/1732
Author: @nfcampos
Created: 9/16/2024
Status: Merged
Merged: 9/17/2024
Merged by: @nfcampos

Base: mainHead: nc/16sep/stream-selected


📝 Commits (1)

  • f505afe perf: In PregelLoop, only emit stream values requested by caller

📊 Changes

2 files changed (+83 additions, -60 deletions)

View changed files

📝 libs/langgraph/langgraph/pregel/__init__.py (+19 -21)
📝 libs/langgraph/langgraph/pregel/loop.py (+64 -39)

📄 Description

  • this avoids creating stream values that will be ignored

🔄 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/1732 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 9/16/2024 **Status:** ✅ Merged **Merged:** 9/17/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `nc/16sep/stream-selected` --- ### 📝 Commits (1) - [`f505afe`](https://github.com/langchain-ai/langgraph/commit/f505afe0668e6305f77a2758fe55565b981ee686) perf: In PregelLoop, only emit stream values requested by caller ### 📊 Changes **2 files changed** (+83 additions, -60 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/langgraph/pregel/__init__.py` (+19 -21) 📝 `libs/langgraph/langgraph/pregel/loop.py` (+64 -39) </details> ### 📄 Description - this avoids creating stream values that will be ignored --- <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:40 -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#2258