[SERVER-42529] KeyString getValueCopy should only allocate a buffer as large as the source buffer Created: 31/Jul/19  Updated: 08/Aug/19  Resolved: 08/Aug/19

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

Type: Improvement Priority: Major - P3
Reporter: Louis Williams Assignee: Gregory Noma
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-41721 IndexAccessMethod::getKeys should ret... Closed
Sprint: Execution Team 2019-08-26
Participants:

 Description   

KeyString getValueCopy uses a new BufBuilder, which allocates a 512 byte buffer by default. Making copies of KeyString could potentially introduce memory pressure by holding large buffers with unused data during index builds.



 Comments   
Comment by Louis Williams [ 08/Aug/19 ]

Fixed by SERVER-41721

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