[SERVER-52660] Memoize demanagled type names Created: 06/Nov/20  Updated: 23/Feb/23  Resolved: 18/Mar/22

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

Type: Improvement Priority: Major - P3
Reporter: Benjamin Caimano (Inactive) Assignee: Backlog - Service Architecture
Resolution: Won't Do Votes: 0
Labels: ben-sa-triage, re-triaged-ticket
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-51068 HierarchicalAcquisitionLevelViolation... Closed
is related to SERVER-52662 Introduce type-associated mutexes Closed
Assigned Teams:
Service Arch
Participants:

 Description   

We have a function that takes a typeid and produces a demangled name here. In many contexts, that function will have too much overhead to be called every time. We should make either a traits class or function that is templated upon a single type and memoizes the demangled name for that type into a static variable.



 Comments   
Comment by Blake Oler [ 26/Jan/23 ]

Keeping this closed – demangling doesn't seem that oft-used or expensive enough to justify doing this.

Comment by Lauren Lewis (Inactive) [ 18/Mar/22 ]

We haven’t heard back from you for some time, so we're going to close this ticket. If this is still an issue for you, please provide additional information and we will reopen the ticket.

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