I’m shipping zerocopy, a Flutter package that eliminates the "Copy Tax" between Dart and C++. No serialization, no cloning, and zero GC pressure.
I’m shipping zerocopy, a Flutter package that eliminates the “Copy Tax” between Dart and C++. No serialization, no cloning, and zero GC pressure.
我发布了 zerocopy,这是一个旨在消除 Dart 与 C++ 之间“复制税”(Copy Tax)的 Flutter 包。它无需序列化、无需克隆,且零 GC 压力。
High-performance apps shouldn’t be slowed down by the “Copy Tax”. I’ve engineered a solution that enables direct memory sharing between the Dart VM and Native C++. No serialization, no cloning, and zero GC pressure.
高性能应用不应被“复制税”所拖累。我设计了一种解决方案,实现了 Dart VM 与原生 C++ 之间的直接内存共享。它无需序列化、无需克隆,且零 GC 压力。
Built for developers handling heavy native data pipelines like ML models, camera feeds, and real-time audio.
该工具专为处理繁重原生数据流水线的开发者打造,例如机器学习模型、摄像头数据流和实时音频处理。
The Benchmarks (100 iterations): MethodChannel: ~4,200ms Dart Isolate: ~1,800ms zerocopy: < 10ms
基准测试(100 次迭代): MethodChannel:约 4,200 毫秒 Dart Isolate:约 1,800 毫秒 zerocopy:< 10 毫秒
If you’re working with camera feeds, ML tensors, or audio buffers, this was built to keep your UI at a locked 120 FPS.
如果你正在处理摄像头数据流、机器学习张量或音频缓冲区,这个工具旨在帮助你的 UI 稳定保持在 120 FPS。
Pub.dev: https://pub.dev/packages/zerocopy Technical Deep-Dive: https://medium.com/@muhammadomar0335/how-i-built-a-flutter-package-that-transfers-10-mb-in-under-10ms-fafcb9e46112 Portfolio: https://momarkhan.com
Pub.dev: https://pub.dev/packages/zerocopy 技术深度解析: https://medium.com/@muhammadomar0335/how-i-built-a-flutter-package-that-transfers-10-mb-in-under-10ms-fafcb9e46112 个人作品集: https://momarkhan.com
One memory address. Two languages. Zero copies. Drop a star on GitHub if this helps your stack!
同一个内存地址,两种编程语言,零次复制。如果这对你的技术栈有帮助,请在 GitHub 上点个星!