[SERVER-39962] Update linux baton to minimize allocations around run Created: 05/Mar/19  Updated: 29/Oct/23  Resolved: 06/Mar/19

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.1.9

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

Issue Links:
Related
is related to SERVER-39959 Make pooled js scope re-use time based Closed
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2019-03-11
Participants:
Linked BF Score: 0

 Description   

The linux baton allocates vectors for the session iterators, as well as the pollfd's, for each call to run. Those are unlikely to change dramatically over the course of a baton's life, so saving them on the object and re-using that memory across calls saves on allocations



 Comments   
Comment by Githook User [ 06/Mar/19 ]

Author:

{'name': 'Jason Carey', 'username': 'hanumantmk', 'email': 'jcarey@argv.me'}

Message: SERVER-39962 Fewer allocations for linux baton

The linux baton allocates vectors for the session iterators, as well as
the pollfd's, for each call to run. Those are unlikely to change
dramatically over the course of a baton's life, so saving them on the
object and re-using that memory across calls saves on allocations
Branch: master
https://github.com/mongodb/mongo/commit/62a3ac3d301c6cbe4a8fc34c4d18e143ce0d074e

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