LL perf (Inventory): Folder delete is quadratic #339
Labels
No labels
amd
avatars
bug
builder
cannot-reproduce
crash
epic
feature
from-viewer
gl-removal
known-limitation
monitoring
parity
perf
platform
priority
critical
priority
high
priority
low
priority
medium
provenance
rendering
rt
status
in-progress
status
testing
status
up-next
triage
ui
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sky_line/Slipstream#339
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From the LL-origin inefficiency audit (finding I3). File/line references are from commit
0229f8872c; re-locate them before working.Folder delete is quadratic
LLFolderViewFolder::isRemovable(llui/llfolderviewitem.cpp:2003-2029) runsget_is_category_and_children_removable(a fullcollectDescendentsplus a COF walk) at every level.removeBatchrepeatsisItemRemovable5 times per element (llinventorybridge.cpp:465-574).descendent_categories/descendent_items(:457-458) are never cleared between folders, so gestures from earlier folders are re-deactivated, with duplicate messages.updateItemper item aftermoveObject(:613-621).checkTrashOverflowwalks the entire trash to count it after every delete (llinventorymodel.cpp:4307-4335).Verify the cost (profile or timer) before and after changing it.
Shipped in a published release and tested; closing (testing-lane sweep 2026-10-11).