[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: |
|
||||||||
| 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 |