PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.
Dart airdrop-alternativeclipboardclipboard-sharingclipboard-synccopy-pastecross-platformend-to-end-encryptionfile-syncfile-transferfluttergolanglinuxmacosnat-traversalp2pself-hostedtailscaleuniversal-clipboardwebrtcwindows
docs: record the LAN TCP prototype measurements for Send Files
baiyuze76ed543fd56c
diff --git a/design/send-files.md b/design/send-files.mdindex e7d70ea..fe73d33 100644--- a/design/send-files.md+++ b/design/send-files.md@@ -818,6 +818,18 @@ message Event {真实千兆局域网只用到约六分之一。传输时 Mac 发送方的后台服务占约 2.2 个核,Linux 接收方占 1~1.7 个核,瓶颈是两端 WebRTC 协议栈逐包处理(DTLS、SCTP)的 CPU 开销,不是网络。要跑满千兆,还是第 12.1 节说的局域网专用 TCP 通道。+**局域网 TCP 原型**(2026-10-22,`.scratch/tcpbench`,不在仓库里):TLS 1.3,两端用 Ed25519 证书互相验证;每次写 60 KB,与隔空传送相同;两端都算 SHA-256。1 GB 随机数据:++| 线路 | 现在的数据通道 | TCP + TLS | TCP + TLS + zstd |+| --- | --- | --- | --- |+| Mac 本机回环(2 GB) | 44 MB/s | 732 MB/s | 611 MB/s |+| Mac → Linux 虚拟机 | 15~17 MB/s | 218 MB/s | 246 MB/s |+| Linux 虚拟机 → Mac | — | 205 MB/s | 199 MB/s |+| Mac → Windows 虚拟机 | 约 18 MB/s | 135 MB/s | 129 MB/s |+| Windows 虚拟机 → Mac | — | 99 MB/s | 101 MB/s |++虚拟机之间就有 7~14 倍的差距,而且都超过了千兆网的上限(约 110 MB/s),换到真实千兆局域网应该能跑满。加密和 zstd 不是瓶颈,所以正式实现可以保留它们。+**zstd**:对不可压缩的随机数据,`SpeedFastest` 约 1.8 GB/s,比传输快几十倍,不是瓶颈。保留压缩,不按格式跳过。## 13. 分阶段