[SERVER-85497] IDL: make gen_trie generate a complete lookup function Created: 19/Jan/24  Updated: 26/Jan/24  Resolved: 26/Jan/24

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

Type: Improvement Priority: Major - P3
Reporter: Billy Donahue Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-83513 Use tries for IDL variant-of-struct l... Closed
is depended on by SERVER-83671 Implement lookup tries for IDL parse ... In Progress
is depended on by SERVER-82940 Use tries for IDL enumeration lookups Closed
is depended on by SERVER-82941 Use IDL enumerations to decode comman... Needs Scheduling
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2024-01-22, Service Arch 2024-02-05
Participants:

 Description   

This covers the early part of SERVER-83671.

The only goal here is to institute a uniform interface for string table lookups as functions. The function signature is

size_t someFunc(StringData s);

So we'll generate these functions using gen_trie calls for now, but the callers will all look the same. They'll call the function and switch on the result.

SERVER-83671 aims to replace gen_trie entirely with C++ code, it comes after this.



 Comments   
Comment by Githook User [ 25/Jan/24 ]

Author:

{'name': 'Billy Donahue', 'email': 'BillyDonahue@users.noreply.github.com', 'username': 'BillyDonahue'}

Message: SERVER-85497 use gen_trie to create whole lookup functions (#18284)

GitOrigin-RevId: 8823506176f91fc758644e14a6c4cfd0628702e3
Branch: master
https://github.com/mongodb/mongo/commit/9fc3ecd79b6cf2064e22e7a2d1d06a9a5de3bd66

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