diff options
| author | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-05-26 00:53:11 +0300 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-05-29 01:52:15 +0300 |
| commit | e0b3b7fc3f07e0823726deba920db2ee5c382746 (patch) | |
| tree | 5cc9ac178ec953691044899f6f99de9804533bd9 /indra/llwindow/llwindowcallbacks.cpp | |
| parent | 0be27809566c1378fa613aa7c42bfd2406a9f764 (diff) | |
#3729 Reduce inventory memory overhead
UI elements already cache display name, getDisplayName() calls are rare
and only come with other calls.
For items, any UI calls already engage internal getItem optimizations,
so doing getItem in getDisplayName() has negligible performance overhead
while avoiding storing a dupplicate of item's name. This also cuts
performance overhead from allocations, so it's a net benefit performance
wise on first load.
System folders do utilize display names that are different from default
names, but they are not panel specific, they are global localizations.
Store those in the model, not in the bridge.
Usage example: LLFolderViewItem::postBuild() already calls getName after
getDisplayName(), so getItem will utilize mLastItem either way and the
only refresh needed happens if user renames the item. Without the user
the update happens only once.
Diffstat (limited to 'indra/llwindow/llwindowcallbacks.cpp')
0 files changed, 0 insertions, 0 deletions
