Click here to Skip to main content
15,896,606 members
Home / Discussions / C#
   

C#

 
GeneralRe: slow listview refresh Pin
Heath Stewart15-Oct-04 8:44
protectorHeath Stewart15-Oct-04 8:44 
GeneralRe: slow listview refresh Pin
DF_Bandit15-Oct-04 9:39
DF_Bandit15-Oct-04 9:39 
GeneralRe: slow listview refresh Pin
Heath Stewart15-Oct-04 15:42
protectorHeath Stewart15-Oct-04 15:42 
GeneralRe: slow listview refresh Pin
afinnell18-Oct-04 6:17
afinnell18-Oct-04 6:17 
GeneralRe: slow listview refresh Pin
Heath Stewart18-Oct-04 6:46
protectorHeath Stewart18-Oct-04 6:46 
GeneralRe: slow listview refresh Pin
afinnell18-Oct-04 7:50
afinnell18-Oct-04 7:50 
GeneralRe: slow listview refresh Pin
Heath Stewart18-Oct-04 10:06
protectorHeath Stewart18-Oct-04 10:06 
GeneralRe: slow listview refresh Pin
afinnell18-Oct-04 11:11
afinnell18-Oct-04 11:11 
I didn't mean thread sync in the traditional sense, but synchronization with threads as you said.

Yeah I read too much into that statement. I should have known that is what you meant.

The fact that adding items uses SendMessage is something I know well - almost everything you call on controls in Windows Forms calls SendMessage. It is for this reason - as I explained before when talking about the encapsulation of the Windows Common Controls - that you must use Control.Invoke. Believe me, I know.

To be fair I wasn't trying to educate you on the internals of the common controls in .NET but rather explain what is happening so that others that read the posts, that might not know, can have a better understanding. I've read quite a bit of your posts and you are a regular contributor to Code Project, plus you work at Microsoft. It was in no way an attempt to educate you on the internals but more of a reference for someone who doesn't know.

The performance issues all come down to the efficiency of your code. I could build a massive (around 2,000 nodes on average) tree (data-fead, polymorphic design) in just a couple of seconds from a DataSet. Adding ListViewItems to a ListView wasn't really a problem either.

The number of items I expect to add are from 1,000 - 70,000. For the cases that I need to display 70,000 and I already know ahead of time what they are I use virtual listview so that it doesn't have to create or load each item until it is displayed on the screen. But that doesn't work when showing search results in real-time.

Another thing that I will bring up is that I haven't ran a profile on the code in question yet. It is always important to profile code before making assumptions on why it is so slow.




-
Drew
GeneralRe: slow listview refresh Pin
Heath Stewart18-Oct-04 11:41
protectorHeath Stewart18-Oct-04 11:41 
GeneralRe: slow listview refresh Pin
afinnell18-Oct-04 12:03
afinnell18-Oct-04 12:03 
GeneralRe: slow listview refresh Pin
DF_Bandit18-Oct-04 8:16
DF_Bandit18-Oct-04 8:16 
GeneralSplitter & multiple panels Pin
DennisMetz15-Oct-04 6:47
DennisMetz15-Oct-04 6:47 
GeneralRe: Splitter & multiple panels Pin
Stanciu Vlad15-Oct-04 7:42
Stanciu Vlad15-Oct-04 7:42 
GeneralRe: Splitter & multiple panels Pin
DennisMetz15-Oct-04 8:14
DennisMetz15-Oct-04 8:14 
GeneralRe: Splitter & multiple panels Pin
Heath Stewart15-Oct-04 9:02
protectorHeath Stewart15-Oct-04 9:02 
GeneralRe: Splitter & multiple panels Pin
DennisMetz15-Oct-04 9:44
DennisMetz15-Oct-04 9:44 
GeneralLittle Help pls Pin
alphanorm15-Oct-04 6:31
alphanorm15-Oct-04 6:31 
GeneralRe: Little Help pls Pin
Brian Nottingham15-Oct-04 6:49
Brian Nottingham15-Oct-04 6:49 
GeneralRe: Little Help pls Pin
alphanorm15-Oct-04 6:55
alphanorm15-Oct-04 6:55 
GeneralDisplaying AOL .art file Pin
cgcrute15-Oct-04 5:05
cgcrute15-Oct-04 5:05 
GeneralRe: Displaying AOL .art file Pin
Heath Stewart15-Oct-04 6:26
protectorHeath Stewart15-Oct-04 6:26 
GeneralRe: Displaying AOL .art file Pin
cgcrute15-Oct-04 6:55
cgcrute15-Oct-04 6:55 
GeneralRe: Displaying AOL .art file Pin
Heath Stewart15-Oct-04 7:05
protectorHeath Stewart15-Oct-04 7:05 
GeneralRe: Displaying AOL .art file Pin
cgcrute15-Oct-04 7:20
cgcrute15-Oct-04 7:20 
GeneralRe: Displaying AOL .art file Pin
cgcrute11-Apr-05 11:04
cgcrute11-Apr-05 11:04 

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.