[SERVER-76673] Reduce BSONColumn iterator size Created: 28/Apr/23  Updated: 29/Oct/23  Resolved: 15/May/23

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

Type: Improvement Priority: Major - P3
Reporter: Henrik Edin Assignee: Henrik Edin
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-05-15, Execution Team 2023-05-29
Participants:

 Description   

BSONColumn iterators contain a lot of state, some of which is duplicated between the 64bit and 128bit types. We should reduce the size by packing the state more efficiently. This could also help performance.



 Comments   
Comment by Githook User [ 05/May/23 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-76673 Reduce size of BSONColumn iterators

The iterator size is roughly cut to a third by using variant to separate
state needed for various decoding modes and states.

Also added interfaces to use the iterators as non-STL iterators, they
were already aware when they reached the end so no need for users to also
carry around an end iterator to compare against.
Branch: master
https://github.com/mongodb/mongo/commit/815022dd56eafabcd8e710331f89122da9769fb5

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