flatbuffers icon indicating copy to clipboard operation
flatbuffers copied to clipboard

Performance

Open josephDunne opened this issue 8 years ago • 0 comments

A lot of flatbuffer code needs to check the length of the underlying byte array. We could implement a check() function which returns a Checked<T: Table>. This function would check the underlying buffer is large enough and return a type which can use unsafe methods to do faster lookups into the buffer i.e. slice::get_unchecked

josephDunne avatar Aug 23 '17 19:08 josephDunne