-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
Even in update benchmarks involving very simple documents, a fair amount of time is spent in mutablebson::Element::operator[](const StringData&). Right now, this is implemented in terms of implementation-agnostic algorithms, that lead to high costs from copies. Since even algorithmic improvements to this hot behavior will involve adding this method to Element anyways, we should do it now, and see if simple copy elisions that result improve performance.