summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelobject.cpp
diff options
context:
space:
mode:
authorMonroe Linden <monroe@lindenlab.com>2009-12-08 18:17:32 -0800
committerMonroe Linden <monroe@lindenlab.com>2009-12-08 18:17:32 -0800
commitce18034e6544364e39aef0ac1a315b7e9e5770fa (patch)
tree54251d19e446716e598db3fa1239a91523c00380 /indra/newview/llpanelobject.cpp
parentb37fab7a5d5a6eedf8567a3f2704b36c98a2645d (diff)
Performance improvements for the nearby media floater when lots of media is present.
Added LLViewerMediaImpl::mInNearbyMediaList for LLFloaterNearbyMedia::refreshList() to use to keep track of which elements it's seen -- this allows us to remove a linear search in an inner loop. Added a map from texture ID to media impl pointer in LLViewerMedia/LLViewerMediaImpl. This allows LLViewerMedia::getMediaImplFromTextureID() to be a std::map lookup instead of a linear search. In LLFloaterNearbyMedia, call sortByColumnIndex in postBuild instead of in addMediaItem(). The latter was causing some unnecessary re-sorting. Hf: Enter commit message. Lines beginning with 'HG:' are removed.
Diffstat (limited to 'indra/newview/llpanelobject.cpp')
0 files changed, 0 insertions, 0 deletions