Click here to Skip to main content
15,916,463 members
Home / Discussions / C#
   

C#

 
GeneralRe: Performance issue Pin
DJ2457-Jan-09 18:19
DJ2457-Jan-09 18:19 
GeneralRe: Performance issue Pin
Wendelius7-Jan-09 19:40
mentorWendelius7-Jan-09 19:40 
GeneralRe: Performance issue Pin
DJ2457-Jan-09 20:55
DJ2457-Jan-09 20:55 
GeneralRe: Performance issue Pin
Wendelius7-Jan-09 21:04
mentorWendelius7-Jan-09 21:04 
GeneralRe: Performance issue Pin
DJ2457-Jan-09 21:21
DJ2457-Jan-09 21:21 
GeneralRe: Performance issue Pin
Wendelius7-Jan-09 21:40
mentorWendelius7-Jan-09 21:40 
GeneralRe: Performance issue Pin
DJ2457-Jan-09 23:15
DJ2457-Jan-09 23:15 
GeneralRe: Performance issue Pin
Wendelius8-Jan-09 2:20
mentorWendelius8-Jan-09 2:20 
One question is that do you still have all the files and directories initially in the tree view. I'm asking this because both listview and treeview can handle few thousand rows. After that the performance degrades radically.

The next step is that is the CheckUncheckChildNodes method slow or the CheckUncheckFilteredFiles method? I would guess that it's CheckUncheckFilteredFiles. You can try this by commenting out the call to CheckUncheckFilteredFiles from CheckUncheckFilteredFiles.

I figured out that you're listing both files and folders in the same treeview but you exclude some files based on their extension or is it vice versa, if the user has selected a parser, do you show only files with certain extension? If you show only certain extensions, use serchpattern on GetFiles

Then you also show an icon based on the file. However did I understand correctly that you have a separate icon for every file??
subNode.ImageIndex = sysIcons.GetIconIndex(fil.FullName)


Also I don't seem to find that you are clearing subnodes anywhere so if the directory is read twice, won't you have duplicate rows on the tree?

One way to enhance the performance is to use a tree for folders only and a list view for files, same as Windows Explorer. By separating them you wouldn't have so many items in the tree.

Also, what's the whole idea. You have a form where you have a combobox? for parser selection. After selecting the parser, user can select what files are parsed? All the files that are selected are parsed and if a node is parsed then every file in that node and it's subnodes are parsed? Was that even close?

The need to optimize rises from a bad design.My articles[^]

GeneralRe: Performance issue Pin
DJ2458-Jan-09 18:18
DJ2458-Jan-09 18:18 
Questionivalid token '=' in class , struct, or interface member declaration? Pin
dec826-Jan-09 0:58
dec826-Jan-09 0:58 
AnswerRe: ivalid token '=' in class , struct, or interface member declaration? Pin
Guffa6-Jan-09 1:06
Guffa6-Jan-09 1:06 
GeneralRe: ivalid token '=' in class , struct, or interface member declaration? Pin
dec826-Jan-09 1:16
dec826-Jan-09 1:16 
GeneralRe: ivalid token '=' in class , struct, or interface member declaration? Pin
Dragonfly_Lee6-Jan-09 2:34
Dragonfly_Lee6-Jan-09 2:34 
GeneralRe: ivalid token '=' in class , struct, or interface member declaration? Pin
Guffa6-Jan-09 2:35
Guffa6-Jan-09 2:35 
GeneralRe: ivalid token '=' in class , struct, or interface member declaration? Pin
Luc Pattyn6-Jan-09 2:37
sitebuilderLuc Pattyn6-Jan-09 2:37 
QuestionString Parsing Pin
mark_w_6-Jan-09 0:53
mark_w_6-Jan-09 0:53 
AnswerRe: String Parsing Pin
Guffa6-Jan-09 1:10
Guffa6-Jan-09 1:10 
AnswerRe: String Parsing Pin
benjymous6-Jan-09 2:58
benjymous6-Jan-09 2:58 
GeneralThanks Pin
mark_w_6-Jan-09 4:26
mark_w_6-Jan-09 4:26 
QuestionHDD rotations per minute Pin
adi.rusu6-Jan-09 0:42
adi.rusu6-Jan-09 0:42 
QuestionPOPUP WINDOW Pin
khosnur6-Jan-09 0:41
khosnur6-Jan-09 0:41 
AnswerRe: POPUP WINDOW Pin
rah_sin6-Jan-09 1:03
professionalrah_sin6-Jan-09 1:03 
QuestionGet Available Bandwidth TCP/IP Pin
satsumatable6-Jan-09 0:38
satsumatable6-Jan-09 0:38 
QuestionUsing enumeration with a public variable [modified] Pin
kanchoette6-Jan-09 0:33
kanchoette6-Jan-09 0:33 
AnswerRe: Using enumeration with a public variable Pin
Henry Minute6-Jan-09 0:49
Henry Minute6-Jan-09 0:49 

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.