VWR-25610 LLControlGroup::loadFromFile makes unnecessary copies of large LLSD objects
Review Request #280 - Created April 26, 2011 and submitted
Brad Kittenbrink | Reviewers | ||
viewer | |||
VWR-25610 | |||
None | viewer-development |
Unnecessary copying was slowing down debugging of STORM-1141.
The nice thing about this change is that is has to be correct[*] if it still compiles. (And it does, I checked :-) 3 minor considerations:
-
indra/llxml/llcontrol.cpp (Diff revision 1) -
1) Any reason not to do the same for name? 2) Remove space between "const" and "&", so that it's easer to visually distinguish from binary operator & 3) LLSD::map_const_iterator seems to support operator ->, so we could write itr->second instead of (*itr).second .
[*] Assuming the data referenced by control_map isn't changed by other threads meanwhile. But I guess that'd also be necessary for copying it correctly, isn't it?
Other reviews