[SERVER-69104] Avoid repeated creation of ColumnStoreEncoder Created: 23/Aug/22 Updated: 29/Oct/23 Resolved: 02/Sep/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.2.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Ian Boros | Assignee: | Justin Seyster |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Participants: | |||||||||
| Description |
|
We see a lot of time spent in translateCell(). This is called once per cell, per document, and it creates a new ColumnStoreEncoder which has a large-ish stack buffer. We should try making one ColumnStoreEncoder and using that throughout the getNext() (or maybe throughout the whole stage's lifetime). |
| Comments |
| Comment by Githook User [ 01/Sep/22 ] |
|
Author: {'name': 'Justin Seyster', 'email': 'justin.seyster@mongodb.com', 'username': 'jseyster'}Message: |