Opened 3 years ago

#17000 new enhancement

Inefficiency with BListItem + BListView design

Reported by: smallstepforman Owned by: nobody
Priority: low Milestone: Unscheduled
Component: Kits/Interface Kit Version: R1/beta2
Keywords: BListItem Cc:
Blocked By: Blocking:
Platform: All

Description

BListView retrieves item metrics from BListItem (in order to handle selection, scrolling etc). This is essentially a pointer list transversal, which isn't a performant memory access operation during scrolling / selection. A better design would be to store the item metrics in a vector inside BListView, this works better with cache locality since it no longer needs to jump around memory searching for a visible item. Insertion/deletion will be slower, but that is not the frequent operation. T

Change History (0)

Note: See TracTickets for help on using tickets.