In benchmarks, calling processList x100 takes 2100ms when opening the inventory, causing a delay when switching between categories when the inventory contains approximately 700-800 items. The exact cause of the bug is still unclear, but fixing the icon processing logic for InventoryIconSetter optimizes this to 800-900ms.
(100 calls were made for benchmarking; to more clearly see the difference, divide the time by 100)
In benchmarks, calling processList x100 takes 2100ms when opening the inventory, causing a delay when switching between categories when the inventory contains approximately 700-800 items. The exact cause of the bug is still unclear, but fixing the icon processing logic for InventoryIconSetter optimizes this to 800-900ms.
(100 calls were made for benchmarking; to more clearly see the difference, divide the time by 100)