[SERVER-61954] Improve decoding performance for BSONColumn Created: 08/Dec/21  Updated: 29/Oct/23  Resolved: 11/Dec/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0, 5.2.0-rc1

Type: Task 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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Participants:
Linked BF Score: 15

 Description   

Revert to input iterator over forward, our use-case doesn't need forward.
Improve inlining where possible
Switch to pre-increment of iterators over post-increment



 Comments   
Comment by Githook User [ 09/Dec/21 ]

Author:

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

Message: SERVER-61954 Improve decoding performance for BSONColumn

  • Use pre-increment in the bucket unpacker, also cache the end iterator
  • Improve inlining for bsoncolumn_util
  • Cache some more variables so we need to re-calculate less when
    incrementing the iterator

(cherry picked from commit 6ea30e6fce2cea6a1080156cf9a5b11037f1fdb1)
Branch: v5.2
https://github.com/mongodb/mongo/commit/877ddc662f3e83497912c893ebe8854bfa002b8c

Comment by Githook User [ 09/Dec/21 ]

Author:

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

Message: SERVER-61954 Improve decoding performance for BSONColumn

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