[opensource-dev] Review Request: VWR-25610 LLControlGroup::loadFromFile makes unnecessary copies of large LLSD objects
Boroondas Gupte
sllists at boroon.dasgupta.ch
Wed Apr 27 04:16:48 PDT 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://codereview.secondlife.com/r/280/#review655
-----------------------------------------------------------
Ship it!
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
<http://codereview.secondlife.com/r/280/#comment618>
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?
- Boroondas
On April 26, 2011, 5:36 p.m., Brad Kittenbrink wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://codereview.secondlife.com/r/280/
> -----------------------------------------------------------
>
> (Updated April 26, 2011, 5:36 p.m.)
>
>
> Review request for Viewer.
>
>
> Summary
> -------
>
> Unnecessary copying was slowing down debugging of STORM-1141.
>
>
> This addresses bug VWR-25610.
> http://jira.secondlife.com/browse/VWR-25610
>
>
> Diffs
> -----
>
> indra/llxml/llcontrol.cpp UNKNOWN
>
> Diff: http://codereview.secondlife.com/r/280/diff
>
>
> Testing
> -------
>
>
> Thanks,
>
> Brad
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/opensource-dev/attachments/20110427/6a2aa458/attachment.htm
More information about the opensource-dev
mailing list