Use Span<byte> for VBucketKeyMapper.GetIndex

Description

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.

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.

Details

Assignee

Reporter

Story Points

Components

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created December 12, 2020 at 8:57 PM
Updated December 14, 2020 at 9:06 PM
Resolved December 14, 2020 at 9:06 PM
Instabug