Parsing code has been rewritten to use memoryviews instead of iterators. There's a decent speedup of 50x in parse-only tests, and about 30-50% in parse-and-access-all-attributes tests. No changes made to the message building code.
protobuf3 with iterators:
protobuf3 with memoryviews:
The functionality remains untouched, except for the create_from_bytes() method no longer accepting anything but bytes (and bytearrays I think). But that's only logical.
Parsing code has been rewritten to use memoryviews instead of iterators. There's a decent speedup of 50x in parse-only tests, and about 30-50% in parse-and-access-all-attributes tests. No changes made to the message building code.
protobuf3 with iterators:
protobuf3 with memoryviews:
The functionality remains untouched, except for the create_from_bytes() method no longer accepting anything but bytes (and bytearrays I think). But that's only logical.