mirror of
https://github.com/Comfy-Org/Comfy-PR.git
synced 2026-11-04 23:37:33 +00:00
[PR #139] [MERGED] perf: optimize TypeScript server performance #139
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/Comfy-PR#139
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/Comfy-Org/Comfy-PR/pull/139
Author: @snomiao
Created: 1/9/2026
Status: ✅ Merged
Merged: 1/11/2026
Merged by: @snomiao
Base:
main← Head:sno-ts-speed📝 Commits (3)
3cec341perf: optimize TypeScript server performanced68e862docs: document TypeScript performance optimizationb0d9ac1fix: fix formatting issues in configuration files📊 Changes
91 files changed (+3794 additions, -3480 deletions)
View changed files
📝
.eslintrc.json(+1 -1)📝
.prettierrc(+2 -5)📝
.vscode/mcp.json(+5 -5)📝
CLAUDE.md(+27 -2)📝
app/(dashboard)/details/page.tsx(+6 -1)📝
app/(dashboard)/rules/layout.tsx(+1 -1)📝
app/(dashboard)/totals-chart/page.tsx(+1 -1)📝
app/api/(dump)/router.ts(+7 -3)📝
app/api/[...openapi]/route.ts(+2 -2)📝
app/api/auth/[...nextauth]/getAuthUser.tsx(+5 -1)📝
app/api/router.test.ts(+1 -5)📝
app/api/router.ts(+18 -4)📝
app/auth/login/page.tsx(+4 -10)📝
app/globals.css(+1 -1)📝
app/tasks/coreping/coreping.ts(+97 -88)📝
app/tasks/gh-bounty/gh-bounty.ts(+9 -7)📝
app/tasks/gh-design/GithubDesignTaskMetaEditor.tsx(+24 -39)📝
app/tasks/gh-design/page.tsx(+33 -36)📝
app/tasks/gh-design/slackMessageUrlParse.ts(+2 -3)📝
app/tasks/gh-design/zGithubDesignTaskMeta.tsx(+18 -21)...and 71 more files
📄 Description
Summary
Fixes major TypeScript server performance issues that were causing slowdowns and breaking the TS server.
Root Causes Identified
**/*.ts) - forced TypeScript to recursively scan all directories including 15,355+ .d.ts files in node_modulesDeepAsyncWrapper<T>type was recursively processing the entire Octokit API surface (122K+ lines of types)Changes Made
**/*.tswith explicit directory patterns (app/**/*.ts,src/**/*.ts, etc.)DeepAsyncWrapperrecursive type - runtime proxy already handles async wrapping**/*.spec.ts,**/*.test.ts) from TypeScript compilationPerformance Improvements
Testing
tsc --noEmit)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.