Shopify / protoboeuf

Experimenting with a protobuf implementation
MIT License
37 stars 4 forks source link

Reuse buffer, centralize integer encoding #79

Closed tenderworks closed 5 months ago

tenderworks commented 5 months ago

I don't see much of a performance difference on this, but I think the code is better. It reuses the buffer object (when it can), and pulls the uint64 encoding code in to one place. I want to try unrolling the integer encoding loop, so this is a first step.