Click here to Skip to main content
15,881,559 members
Home / Discussions / C#
   

C#

 
GeneralRe: Speed up Treeview Pin
Scott Dorman20-Sep-07 18:26
professionalScott Dorman20-Sep-07 18:26 
GeneralRe: Speed up Treeview Pin
DaveyM6921-Sep-07 1:05
professionalDaveyM6921-Sep-07 1:05 
GeneralRe: Speed up Treeview Pin
Scott Dorman21-Sep-07 4:49
professionalScott Dorman21-Sep-07 4:49 
GeneralRe: Speed up Treeview Pin
Pete O'Hanlon21-Sep-07 9:12
mvePete O'Hanlon21-Sep-07 9:12 
GeneralRe: Speed up Treeview Pin
DaveyM6921-Sep-07 3:36
professionalDaveyM6921-Sep-07 3:36 
GeneralRe: Speed up Treeview Pin
Scott Dorman21-Sep-07 4:51
professionalScott Dorman21-Sep-07 4:51 
GeneralRe: Speed up Treeview Pin
DaveyM6921-Sep-07 5:50
professionalDaveyM6921-Sep-07 5:50 
GeneralRe: Speed up Treeview Pin
DaveyM6921-Sep-07 7:55
professionalDaveyM6921-Sep-07 7:55 
The big difference was the PC. At home I'm acheiving around 250ms!

I've ammended the code as you suggested and I'm seeing similar results - using the List<> is approximately the same as not. There's occaisionally a slight difference of 30ms or so, as you found, which can go to either method but on average yours is the quicker.

I've tried it with a real world sample reading 15000 childNodes (so 30001 actual TreeNodes) from an xml file on a seperate thread and returning an object to the UI that holds the List<>, the start time and a result of the xml read operation - the UI is then updated from the List in the method you suggested and the whole thing is now completing in about 1.5 seconds.

That is quite remarkable and definately acceptable so problem solved Big Grin | :-D

Many thanks once again,

Dave
GeneralRe: Speed up Treeview Pin
Scott Dorman21-Sep-07 8:06
professionalScott Dorman21-Sep-07 8:06 
GeneralRe: Speed up Treeview Pin
igetorix11-May-08 5:49
igetorix11-May-08 5:49 
QuestionDataTable does not contain definition for 'Controls'???? Pin
ss.mmm20-Sep-07 8:43
ss.mmm20-Sep-07 8:43 
AnswerRe: DataTable does not contain definition for 'Controls'???? Pin
Dave Kreskowiak20-Sep-07 9:09
mveDave Kreskowiak20-Sep-07 9:09 
GeneralRe: DataTable does not contain definition for 'Controls'???? Pin
ss.mmm20-Sep-07 9:30
ss.mmm20-Sep-07 9:30 
AnswerRe: Data on displaying on separate forms Pin
Dave Kreskowiak20-Sep-07 8:55
mveDave Kreskowiak20-Sep-07 8:55 
QuestionCurrency web services or other methods? Pin
udikantz20-Sep-07 7:56
udikantz20-Sep-07 7:56 
AnswerRe: Currency web services or other methods? Pin
Ravi Bhavnani20-Sep-07 10:33
professionalRavi Bhavnani20-Sep-07 10:33 
GeneralRe: Currency web services or other methods? Pin
udikantz20-Sep-07 12:30
udikantz20-Sep-07 12:30 
GeneralRe: Currency web services or other methods? Pin
Ravi Bhavnani21-Sep-07 12:31
professionalRavi Bhavnani21-Sep-07 12:31 
QuestionSql filling question Pin
sajid.salim.khan20-Sep-07 7:49
sajid.salim.khan20-Sep-07 7:49 
AnswerRe: Sql filling question Pin
Brady Kelly20-Sep-07 8:26
Brady Kelly20-Sep-07 8:26 
GeneralRe: Sql filling question Pin
sajid.salim.khan20-Sep-07 8:33
sajid.salim.khan20-Sep-07 8:33 
GeneralRe: Sql filling question Pin
Dave Kreskowiak20-Sep-07 8:38
mveDave Kreskowiak20-Sep-07 8:38 
QuestionS_OK Does Not Exist... Pin
jagooch20-Sep-07 6:58
jagooch20-Sep-07 6:58 
AnswerRe: S_OK Does Not Exist... Pin
Giorgi Dalakishvili20-Sep-07 7:28
mentorGiorgi Dalakishvili20-Sep-07 7:28 
AnswerRe: S_OK Does Not Exist... Pin
Dave Kreskowiak20-Sep-07 7:30
mveDave Kreskowiak20-Sep-07 7:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.