atom-archive / xray

An experimental next-generation Electron-based text editor
MIT License
8.48k stars 235 forks source link

Serialize operations using FlatBuffers #160

Closed as-cii closed 5 years ago

as-cii commented 5 years ago

This pull request removes bincode and replaces it with FlatBuffers, an efficient encoding scheme that will also allows us to evolve the Memo protocol in the future.

The branch started as an experiment with protobuf, but we weren't quite satisfied with the code that was auto-generated from the schema files. After that we turned our attention to FlatBuffers, which provide a better API and require no additional allocations as well.

/cc: @nathansobo

max-sixty commented 5 years ago

FYI I think there's a .proto file remaining in this PR

as-cii commented 5 years ago

Thanks @max-sixty, that file has been removed as part of #161.