[SERVER-61943] OID::init slow due to hex decode refactor Created: 07/Dec/21  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Billy Donahue Assignee: Backlog - Service Architecture
Resolution: Unresolved Votes: 0
Labels: sa-remove-fv-backlog-22
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by SERVER-43909 util/hex.h is non-portable, inefficie... Closed
Assigned Teams:
Service Arch
Participants:

 Description   

SERVER-43909 refactored a hex decoding function used by the hot OID::init function. As reported there, this significantly affects the insert_vector benchmark.

The specific refactor changed from a looping uint8[] fill to a single call returning std::string. Maybe the allocation or inlining slowed things down.

https://github.com/mongodb/mongo/commit/58828b0ce9556ee9cb38c484d1226663a0dcd993#diff-d240def0294fa927ab59a7098578eaa53d56af8119f018ad1bd5debc276ca6f0L152


Generated at Thu Feb 08 05:53:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.