[SERVER-83275] Avoid extra copy in WiredTigerIndex findLoc Created: 15/Nov/23  Updated: 16/Nov/23  Resolved: 16/Nov/23

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

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

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2023-11-27
Participants:

 Description   

The SortedDataInterface::findLoc function provides "seek exact" functionality. We don't need it to make a copy of the KeyString to compare.

We can do the comparison against the positioned key without the copy.



 Comments   
Comment by Githook User [ 16/Nov/23 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-83275 Expose no-copy SortedDataInterface seekExact API
Branch: master
https://github.com/mongodb/mongo/commit/725e401d74d75016ff8054627eb6cdc89db3f26f

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