[SERVER-83609] Improve performance of ScanStage::getNext Created: 27/Nov/23  Updated: 12/Dec/23  Resolved: 30/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: Parker Felix Assignee: Parker Felix
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
Backwards Compatibility: Fully Compatible
Participants:
Linked BF Score: 105

 Description   

We can inline ScanStage::getFieldAccessor and change `fieldNameAndLength` to use the StringData constructor with a length parameter to avoid checking for nullptr every time.



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

Author:

{'name': 'Parker Felix', 'email': 'parker.felix@mongodb.com', 'username': 'parker-felix'}

Message: SERVER-83609 Improve performance of ScanStage::getNext.
Branch: master
https://github.com/mongodb/mongo/commit/754d6c81d959f4af5cf7202b4a0019cd63711332

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