[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: SERVER-13523 Use a tiny number of fast reps in debug builds
Branch: master
https://github.com/mongodb/mongo/commit/ef255438ebac75bb2058c12f32a926d46421c692

Generated at Thu Feb 08 03:32:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.