[SERVER-71072] Change SBEPatternValueCmp to save asc or desc sort as a class variable instead of evaluate it Created: 03/Nov/22  Updated: 29/Oct/23  Resolved: 07/Nov/22

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

Type: Task Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Dianna Hohensee (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by SERVER-69985 Investigate $sortArray performance in... Closed
Backwards Compatibility: Fully Compatible
Sprint: QE 2022-11-14
Participants:
Linked BF Score: 35

 Description   

It was found during SERVER-69985 that saving this evaluation into a class variable instead of evaluating it each value comparison led to performance improvements in SBE $sortArray



 Comments   
Comment by Githook User [ 07/Nov/22 ]

Author:

{'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}

Message: SERVER-71072 Change SBEPatternValueCmp whether to sort ascending or descending as a class variable instead of evaluating it for every comparison
Branch: master
https://github.com/mongodb/mongo/commit/634ccd794336a5514a79afbb847cec5bcb2ad225

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