mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7444] [MERGED] perf(server): send JSON bodies above 4 MB uncompressed #7738
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7738
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/Pasta-Devs/Marinara-Engine/pull/7444
Author: @SpicyMarinara
Created: 10/11/2026
Status: ✅ Merged
Merged: 10/11/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/compress-json-cap📝 Commits (1)
50477acperf(server): send JSON bodies above 4 MB uncompressed📊 Changes
2 files changed (+14 additions, -1 deletions)
View changed files
📝
packages/server/src/middleware/compress-json.ts(+8 -1)📝
scripts/regressions/compress-json.regression.ts(+6 -0)📄 Description
Linked issue
Closes #7440 (follow-up to #7441)
Why this change
JSON.stringify, not the "1–6 ms/MB" #7441 claimed.What changed
compressJsonHookskips compression for bodies above 4 MB, which then go out as they did before compression existed. The worst main-thread cost is about 30–50 ms.ponytail:comment records the ceiling and the upgrade path: return everyreply.sendin async handlers, then compress large bodies on the threadpool again.compress-jsonchecks that a body just over 4 MB stays uncompressed and intact. It fails without the cap.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent:
pnpm check,node ./scripts/run-regressions.mjs --filter scripts/regressions/compress-json.regression.ts(passes, and fails with the cap removed).Manual verification notes
content-encoding: br).Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.