Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 611 by [email protected]: Python proto optimization
http://code.google.com/p/protobuf/issues/detail?id=611
(original thread)
https://groups.google.com/forum/#!topic/protobuf/RDAKafkfXYM
I wrote a patch which optimize python proto performance. Feng Xiao asked
me to repost the diff in the issue tracker.
Patch: https://www.dropbox.com/s/q0y44ypti0by779/protobuf-2.5.0.patch1
Changes:
- precompute various varint tables
- don't use proto's ByteSize function for serialization
- got rid of StringIO
Internal benchmark:
- random repeated int32s - ~18% faster
- random repeated int64s - ~20% faster
- random repeated strings - 27% faster
- random repeated bytes - 27% faster
- repeated message with each with a single random string - ~20% faster
NOTE:
- predefined_varints.py is generated by generate_predefined_varints.py
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.