msoucy / dproto

D Protocol Buffer mixins to create structures at compile time
Boost Software License 1.0
37 stars 16 forks source link

ZigZag speed up #133

Closed denizzzka closed 5 years ago

denizzzka commented 6 years ago

Some years ago I am wrote current version of ZigZag because copy'n'pasted Google's ZigZag code worked wrong in D.

This patch reverts Google version of ZigZag with fix for D and now it works faster because logical branching is gone.

This code copied from @dcarp's https://github.com/dcarp/protobuf-d project

msoucy commented 5 years ago

Merged via 76ff3f2d566ecacffb3c3277274ebcb1b895ab8c (I manually rebased it onto master, and github doesn't seem to pick that up)