jamescourtney / FlatSharp

Fast, idiomatic C# implementation of Flatbuffers
Apache License 2.0
511 stars 51 forks source link

Minor Serialization Enhancements #124

Closed jamescourtney closed 3 years ago

jamescourtney commented 3 years ago

When possible, precompute the vtable length and suppress ```if```` statements that update it.

Pre-slice the span when writing structs. This elides bounds checks and lets the JIT generate more compact code with fewer jumps.