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.
Attachments
For Gerrit Dashboard: NCBC-2733 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
141537,2 | NCBC-2733: Improve efficiency of ErrorCode lookup in ErrorMap | master | couchbase-net-client | Status: MERGED | +2 | +1 |