Replies: 1 comment 7 replies
-
Without access to the benchmarks it's impossible to know what you saw before we even begin to find the root cause as to the performance discrepancy which would have to happen before we made any recommendations let alone changes. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently found Wire and was initially very excited about it as an alternative to the standard protobuf compiler for Java. I like the style of java that is output. But I was disappointed when I ran a few performance tests against it compared to the standard compiler. For serialization, I saw a 10x speed drop with the Wire implementation. I saw serialization for a particular protobuf message go from an average of 80ms to 800ms+. Note that my particular use-case involves some very large protobuf messages. This particular one was 23MB in size after serialization. But that level of performance degradation is not really reasonable for me.
I'm wondering if there's something wrong in the way I'm using the library. I tried to find documentation on optimization or performance concerns, but could not find anything. I thought that perhaps the first execution would be slow until the system had an opportunity to cache the serializer, but subsequent executions were roughly the same speed, maybe ever so slightly faster. So yeah... I'm just trying to find a way to improve serialization speed.
Beta Was this translation helpful? Give feedback.
All reactions