LL perf (Inventory): changeItemParent: per item #342

Closed
opened 2026-10-04 14:09:24 +00:00 by sky_line · 1 comment
Owner

From the LL-origin inefficiency audit (finding I6). File/line references are from commit 0229f8872c; re-locate them before working.

changeItemParent: per item

  • Per item: one MoveInventoryItem, one heap copy, a full notifyObservers, and 3 INFO log lines with O(depth²) path building (llinventorymodel.cpp:1834-1859; llinventoryfunctions.cpp:226-273).
  • Callers: 22 sites, including multi-item drag-drop and move-to-trash.
  • Shows it can batch: the message supports multiple blocks; removeBatchNoCheck already batches.
  • Fix: changeItemsParent(vector); DEBUG logs.
  • Confirmed. M.

Verify the cost (profile or timer) before and after changing it.

From the LL-origin inefficiency audit (finding I6). File/line references are from commit 0229f8872c; re-locate them before working. **`changeItemParent`: per item** - **Per item:** one `MoveInventoryItem`, one heap copy, a full `notifyObservers`, and **3 INFO log lines with O(depth²) path building** (`llinventorymodel.cpp:1834-1859`; `llinventoryfunctions.cpp:226-273`). - **Callers:** 22 sites, including multi-item drag-drop and move-to-trash. - **Shows it can batch:** the message supports multiple blocks; `removeBatchNoCheck` already batches. - **Fix:** `changeItemsParent(vector)`; DEBUG logs. - Confirmed. M. Verify the cost (profile or timer) before and after changing it.
sky_line added this to the Slipstream project 2026-10-06 15:04:13 +00:00
Author
Owner

Shipped in a published release and tested; closing (testing-lane sweep 2026-10-11).

Shipped in a published release and tested; closing (testing-lane sweep 2026-10-11).
sky_line 2026-10-11 13:24:58 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sky_line/Slipstream#342
No description provided.