Closed Centril closed 2 weeks ago
Hash for RowRef
Hash for ProductValue
RowRef::row_hash
Table::insert
RowRef
second-stack
Fixes https://github.com/clockworklabs/SpacetimeDB/pull/1107.
None
3, some unsafe involved and we need to ensure consistency in the eq/hash functions. Some unsafe code is also removed.
Proptests are added for the new code.
Description of Changes
Hash for RowRef
+ make it consistent withHash for ProductValue
.RowRef::row_hash
use the above.Table::insert
return aRowRef
.second-stack
to reuse temporary allocations in hashing and serialization.Fixes https://github.com/clockworklabs/SpacetimeDB/pull/1107.
API and ABI breaking changes
None
Expected complexity level and risk
3, some unsafe involved and we need to ensure consistency in the eq/hash functions. Some unsafe code is also removed.
Testing
Proptests are added for the new code.