The invention relates to a Lua-based UILListView
list control optimization method,
system and device and a medium, and the method comprises the steps: obtaining the total number of preset subitems and the size of each subitem, creating an idle
pool sub-
queue and a use
pool sub-
queue, calculating the position of each subitem in a visual window according to the size of each subitem, and calculating the position of each subitem in the visual window according to the position of each subitem in the visual window; when it is detected that a subitem removal event occurs on the optimized UILListView
list control, subitems moved out of a visual window are removed from a use
pool subqueue, the subitems moved out of the visual window are added into an idle pool subqueue, the optimized UILListView
list control is obtained by expanding a LuaTableView control to a native UILListView list control, and the UILListView list control is obtained by expanding the LuaTableView list control to the original UILListView list control. The LuaTableView control is generated by inheriting a parent class Widget through a UISSColView control on the basis of a Lua layer, and child item removal drawing operation is executed on the optimized UILListView list control, the problem that the parent class is not the Widget is solved, memory consumption is reduced, the method and the device are suitable for
big data display of a helper member list, a friend list, a backpack and the like in a game, and great convenience is brought to
business logic development and use.