﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2114	Performance increase to _ArrayDisplay()	Beege	guinness	"I notice today that _arraydisplay() does not disable redraw before adding new items to the listview. This can have a big impact on the performance. 

Changing the main loop that adds the listview items to:
{{{
GUICtrlSendMsg($hListView, 11, 0, 0);$WM_SETREDRAW
; Fill listview
For $i = 0 To $iUBound
	GUICtrlCreateListViewItem($avArrayText[$i], $hListView)
Next
GUICtrlSendMsg($hListView, 11, 1, 0);$WM_SETREDRAW
}}}


For a quick test I ran this small script:
{{{
Global $g_aArray[1] = [1]
For $i = 2 To 20
	_ArrayAdd($g_aArray, $i)
Next
Global $g_aArrayCombo = _ArrayCombinations($g_aArray, 7, "","")

_ArrayDisplay($g_aArrayCombo)
}}}


My times before and after were:
 Before - 6569.94750836973
 After  -  1508.47224799844

"	Feature Request	closed	3.3.9.5	Standard UDFs		None	Completed	_arraydisplay	
