class ProtobufEncoder 和 netty4 中的 ProtobufEncoderNano 有什么区别?
What's the differences between class ProtobufEncoder and ProtobufEncoderNano in netty4?
我在 netty4 API 文档中找到了两个 class,但我不知道它们的确切区别。 nano 相关 class 是否用于 Android?如果是这样,为什么我们在开发 android 应用程序时应该使用 nano protobuf 而不是普通的 protobuf 协议来传输数据?
你可以看看源代码 类:
唯一的主要区别是它们编码的实际类型。二是显式处理MessageNano,属于javanano代码生成器和运行time。由于文档引用 "JavaNano is a special code generator and runtime library designed specially for resource-restricted systems, like Android",因此我想这是您的选择,它取决于您的应用程序将 运行.
的设备的功能
我在 netty4 API 文档中找到了两个 class,但我不知道它们的确切区别。 nano 相关 class 是否用于 Android?如果是这样,为什么我们在开发 android 应用程序时应该使用 nano protobuf 而不是普通的 protobuf 协议来传输数据?
你可以看看源代码 类:
唯一的主要区别是它们编码的实际类型。二是显式处理MessageNano,属于javanano代码生成器和运行time。由于文档引用 "JavaNano is a special code generator and runtime library designed specially for resource-restricted systems, like Android",因此我想这是您的选择,它取决于您的应用程序将 运行.
的设备的功能