mirror of
https://github.com/langchain-ai/langgraphjs-api.git
synced 2026-07-19 13:25:54 -04:00
[PR #74] [MERGED] fix(api): reuse ts.Program as much as possible #70
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/langgraphjs-api/pull/74
Author: @dqbd
Created: 5/16/2025
Status: ✅ Merged
Merged: 5/16/2025
Merged by: @dqbd
Base:
main← Head:dqbd/schema-inference-parallel📝 Commits (1)
ef51697fix(api): reuse ts.Program as much as possible📊 Changes
4 files changed (+729 additions, -563 deletions)
View changed files
📝
libs/langgraph-api/src/graph/parser/index.mts(+64 -27)📝
libs/langgraph-api/src/graph/parser/parser.mts(+121 -55)📝
libs/langgraph-api/src/graph/parser/parser.worker.mjs(+1 -5)📝
libs/langgraph-api/tests/parser.test.mts(+543 -476)📄 Description
Previously we spawned a JS worker for every graph, which means that the TS typechecker relaunched multiple times, which most likely is the cause of OOM issues seen in LGP
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.