Improve efficiency of ErrorCode lookup in ErrorMap

Description

The current lookup approach converts the error code short to a lowercase hex string and then does a string lookup in a dictionary. This involves string comparisons and allocates two strings on the heap. Instead, we should key the dictionary by the short value. This code is currently run on every key/value response.

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

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created December 5, 2020 at 10:39 PM
Updated December 8, 2020 at 2:12 AM
Resolved December 8, 2020 at 2:12 AM
Instabug