DataRow without allocation; DataRow as Collection; RowDescription top level
This patch was authored and released by @fabianfett.
This is a cherry pick of #188.
Modifications
DataRowandRowDescriptionhave been moved out of thePSQLBackendMessagenamespace. This allows us to mark them as@inlinableor@usableFromInlineat a later point, without marking everything inPSQLBackendMessageas@inlinableDataRowdoes not use an internal array for its columns anymore. Instead all read operations are directly done on its ByteBuffer slice.DataRowimplements theCollectionprotocol now.
Result
One allocation fewer per queried row.