[SERVER-13523] For debug builds, limit the size of the 'fast' reps array to a very small number Created: 09/Apr/14 Updated: 11/Jul/16 Resolved: 09/Apr/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 2.7.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Andrew Morrow (Inactive) | Assignee: | Andrew Morrow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Participants: |
| Description |
|
Internally to mutable, there is a data structure that holds a fixed size array of 'fast' ElementRep objects. If that array is filled, we then spill to a std::vector. One side effect of this is that tests that only manipulate a small number of elements never hit the std::vector. We want our testing to test both modes. The easiest way to achieve this is to select a very small size for the 'fast' objects in debug builds. |
| Comments |
| Comment by Githook User [ 09/Apr/14 ] |
|
Author: {u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}Message: |