jazz
jazz copied to clipboard
fix: replace setTimeout with setImmediate/queueMicrotask in IncomingMessagesQueue
We've noticed when the sync server is busy processing incoming messages, the CPU usage is quite low.
I think that the reason is that setTimeout is too aggressive as a way to do collaborative scheduling, and moving to using setImmediate when available or queueMicrotask when not.
Doing some tests to see the effect.
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
| Project | Deployment | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| jazz-homepage | Nov 19, 2025 3:59pm |
Jazz pre-release
Packages:
{
"cojson-core-napi": "https://pkg.pr.new/garden-co/jazz/cojson-core-napi@957627889fc851d499afe1ab272133da3e7e087d",
"cojson-core-wasm": "https://pkg.pr.new/garden-co/jazz/cojson-core-wasm@957627889fc851d499afe1ab272133da3e7e087d",
"jazz-tools-codemod-0-18": "https://pkg.pr.new/garden-co/jazz/jazz-tools-codemod-0-18@957627889fc851d499afe1ab272133da3e7e087d",
"jazz-tools-codemod-0-19": "https://pkg.pr.new/garden-co/jazz/jazz-tools-codemod-0-19@957627889fc851d499afe1ab272133da3e7e087d",
"cojson": "https://pkg.pr.new/garden-co/jazz/cojson@957627889fc851d499afe1ab272133da3e7e087d",
"cojson-storage-do-sqlite": "https://pkg.pr.new/garden-co/jazz/cojson-storage-do-sqlite@957627889fc851d499afe1ab272133da3e7e087d",
"cojson-storage-indexeddb": "https://pkg.pr.new/garden-co/jazz/cojson-storage-indexeddb@957627889fc851d499afe1ab272133da3e7e087d",
"cojson-storage-sqlite": "https://pkg.pr.new/garden-co/jazz/cojson-storage-sqlite@957627889fc851d499afe1ab272133da3e7e087d",
"cojson-transport-ws": "https://pkg.pr.new/garden-co/jazz/cojson-transport-ws@957627889fc851d499afe1ab272133da3e7e087d",
"community-jazz-vue": "https://pkg.pr.new/garden-co/jazz/community-jazz-vue@957627889fc851d499afe1ab272133da3e7e087d",
"create-jazz-app": "https://pkg.pr.new/garden-co/jazz/create-jazz-app@957627889fc851d499afe1ab272133da3e7e087d",
"cursor-docs": "https://pkg.pr.new/garden-co/jazz/cursor-docs@957627889fc851d499afe1ab272133da3e7e087d",
"hash-slash": "https://pkg.pr.new/garden-co/jazz/hash-slash@957627889fc851d499afe1ab272133da3e7e087d",
"jazz-run": "https://pkg.pr.new/garden-co/jazz/jazz-run@957627889fc851d499afe1ab272133da3e7e087d",
"jazz-tools": "https://pkg.pr.new/garden-co/jazz/jazz-tools@957627889fc851d499afe1ab272133da3e7e087d",
"jazz-webhook": "https://pkg.pr.new/garden-co/jazz/jazz-webhook@957627889fc851d499afe1ab272133da3e7e087d",
"quint-ui": "https://pkg.pr.new/garden-co/jazz/quint-ui@957627889fc851d499afe1ab272133da3e7e087d",
"cojson-core-napi-darwin-arm64": "https://pkg.pr.new/garden-co/jazz/cojson-core-napi-darwin-arm64@957627889fc851d499afe1ab272133da3e7e087d",
"cojson-core-napi-darwin-x64": "https://pkg.pr.new/garden-co/jazz/cojson-core-napi-darwin-x64@957627889fc851d499afe1ab272133da3e7e087d",
"cojson-core-napi-linux-arm-gnueabihf": "https://pkg.pr.new/garden-co/jazz/cojson-core-napi-linux-arm-gnueabihf@957627889fc851d499afe1ab272133da3e7e087d",
"cojson-core-napi-linux-arm64-gnu": "https://pkg.pr.new/garden-co/jazz/cojson-core-napi-linux-arm64-gnu@957627889fc851d499afe1ab272133da3e7e087d",
"cojson-core-napi-linux-arm64-musl": "https://pkg.pr.new/garden-co/jazz/cojson-core-napi-linux-arm64-musl@957627889fc851d499afe1ab272133da3e7e087d",
"cojson-core-napi-linux-x64-gnu": "https://pkg.pr.new/garden-co/jazz/cojson-core-napi-linux-x64-gnu@957627889fc851d499afe1ab272133da3e7e087d",
"cojson-core-napi-linux-x64-musl": "https://pkg.pr.new/garden-co/jazz/cojson-core-napi-linux-x64-musl@957627889fc851d499afe1ab272133da3e7e087d"
}