Use Span<byte> for VBucketKeyMapper.GetIndex
Description
Environment
None
Gerrit Reviews
None
Release Notes Description
None
Activity
Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.
Created December 12, 2020 at 8:57 PM
Updated December 14, 2020 at 9:06 PM
Resolved December 14, 2020 at 9:06 PM
Encoding the key to a stackalloc Span<byte> will be more efficient. However, it may require the C# 9 compiler to support SkipLocalsInitAttribute to provide sufficient gains given the added cost of zeroing the span.