473,769 Members | 2,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Are ListViews really slow?

I have an application that uses a LIstView.
Maybe 100 items each with 20 subitems.

The app looks at eack item and subitem twice.
I.e., it scans the entire set of data
item1, sub1,sub2,...
item2,sub1,sub2 ...
..
..
twice

I've never run it long enough for it to complete.
I'm using 3GHz CPU on an XPS by Dell

Could it be that accessing a ListView takes that long?

Thanks for any help
Nov 20 '05
21 1569
We have 100 users here so we only use 2 of them. I understand that the
reasoning for so many, was just straight out impressed by the number. =)

How many users? 50k? 100k? What do you do?

-CJ
"Jerry Ham" <No*****@Sompla ce.net> wrote in message
news:e5******** ******@TK2MSFTN GP12.phx.gbl...
Yes - and over 2300 IP subnets and over 180 countries.
Major sites may have several DC's, minor sites have 1, and sites with less
than 100 users logon over the WAN.

Jerry

"CJ Taylor" <no****@blowgoa ts.com> wrote in message
news:vt******** ****@corp.super news.com...
You have 145 Domain Controllers???
"Jerry Ham" <No*****@Sompla ce.net> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Sounds like something in your code.

I've currently got a project with a listview for Active Directory Domain controllers and properties (properties in the subitems). In our domain, there are currently 145 DC, so 145 listview items, each with 5
subitems.
I don't see any slowness there at all.

Jerry

"TryingLikeHeck " <tr************ @aol.com> wrote in message
news:20******** *************** ****@mb-m16.aol.com...
> I have an application that uses a LIstView.
> Maybe 100 items each with 20 subitems.
>
> The app looks at eack item and subitem twice.
> I.e., it scans the entire set of data
> item1, sub1,sub2,...
> item2,sub1,sub2 ...
> .
> .
> twice
>
> I've never run it long enough for it to complete.
> I'm using 3GHz CPU on an XPS by Dell
>
> Could it be that accessing a ListView takes that long?
>
> Thanks for any help
>
>



Nov 20 '05 #11
Just thought about this too and don't know if it was brought up, but did you
try to Suspend the layout (calling SuspendLayout) which would prevent it
from being painted and taking up other valuable CPU time.

-CJ
"Cor" <no*@non.com> wrote in message
news:eN******** ********@tk2msf tngp13.phx.gbl. ..
Hi Active,

Slow is always subjective.

When you have a very wide Wan, you will have many thin parts in the pipeline and the listview will probably not be the most important in that.

When you are on a computer that has direct access the full datatable all the time without any data access problem, your listview will become earlier a
part of that pipeline to get the data.

I think a good comparer is explorer, that is a listview also and the user is accepting it.

Therefore, in my eyes, when your program is much slower than explorer in
colleting data, you have a problem.

Although when you use things as redim I really think, that you have to check what the arraylist of other fast ilist class can do for you.

Just a though

Cor

Nov 20 '05 #12
53,000 computers - slightly more users as there is some shift work, etc.
where they share machines.

I am a team lead on the team that designs our desktop image (Windows,
Office, custom apps, etc) and does custom coding for our image as well. We
create tools, etc. for the support staff to use.

Jerry

"CJ Taylor" <no****@blowgoa ts.com> wrote in message
news:vt******** ****@corp.super news.com...
We have 100 users here so we only use 2 of them. I understand that the
reasoning for so many, was just straight out impressed by the number. =)

How many users? 50k? 100k? What do you do?

-CJ
"Jerry Ham" <No*****@Sompla ce.net> wrote in message
news:e5******** ******@TK2MSFTN GP12.phx.gbl...
Yes - and over 2300 IP subnets and over 180 countries.
Major sites may have several DC's, minor sites have 1, and sites with less
than 100 users logon over the WAN.

Jerry

"CJ Taylor" <no****@blowgoa ts.com> wrote in message
news:vt******** ****@corp.super news.com...
You have 145 Domain Controllers???
"Jerry Ham" <No*****@Sompla ce.net> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
> Sounds like something in your code.
>
> I've currently got a project with a listview for Active Directory

Domain > controllers and properties (properties in the subitems). In our domain, > there are currently 145 DC, so 145 listview items, each with 5

subitems.
I
> don't see any slowness there at all.
>
> Jerry
>
> "TryingLikeHeck " <tr************ @aol.com> wrote in message
> news:20******** *************** ****@mb-m16.aol.com...
> > I have an application that uses a LIstView.
> > Maybe 100 items each with 20 subitems.
> >
> > The app looks at eack item and subitem twice.
> > I.e., it scans the entire set of data
> > item1, sub1,sub2,...
> > item2,sub1,sub2 ...
> > .
> > .
> > twice
> >
> > I've never run it long enough for it to complete.
> > I'm using 3GHz CPU on an XPS by Dell
> >
> > Could it be that accessing a ListView takes that long?
> >
> > Thanks for any help
> >
> >
>
>



Nov 20 '05 #13
That is awesome. I have to ask, what is the name of the beast you work for?

I want to say something in insurance.. but I could be wrong.

"Jerry Ham" <No*****@Sompla ce.net> wrote in message
news:Ol******** ******@TK2MSFTN GP12.phx.gbl...
53,000 computers - slightly more users as there is some shift work, etc.
where they share machines.

I am a team lead on the team that designs our desktop image (Windows,
Office, custom apps, etc) and does custom coding for our image as well. We
create tools, etc. for the support staff to use.

Jerry

"CJ Taylor" <no****@blowgoa ts.com> wrote in message
news:vt******** ****@corp.super news.com...
We have 100 users here so we only use 2 of them. I understand that the
reasoning for so many, was just straight out impressed by the number. =)

How many users? 50k? 100k? What do you do?

-CJ
"Jerry Ham" <No*****@Sompla ce.net> wrote in message
news:e5******** ******@TK2MSFTN GP12.phx.gbl...
Yes - and over 2300 IP subnets and over 180 countries.
Major sites may have several DC's, minor sites have 1, and sites with less than 100 users logon over the WAN.

Jerry

"CJ Taylor" <no****@blowgoa ts.com> wrote in message
news:vt******** ****@corp.super news.com...
> You have 145 Domain Controllers???
>
>
> "Jerry Ham" <No*****@Sompla ce.net> wrote in message
> news:%2******** ********@tk2msf tngp13.phx.gbl. ..
> > Sounds like something in your code.
> >
> > I've currently got a project with a listview for Active Directory

Domain
> > controllers and properties (properties in the subitems). In our

domain,
> > there are currently 145 DC, so 145 listview items, each with 5

subitems.
I
> > don't see any slowness there at all.
> >
> > Jerry
> >
> > "TryingLikeHeck " <tr************ @aol.com> wrote in message
> > news:20******** *************** ****@mb-m16.aol.com...
> > > I have an application that uses a LIstView.
> > > Maybe 100 items each with 20 subitems.
> > >
> > > The app looks at eack item and subitem twice.
> > > I.e., it scans the entire set of data
> > > item1, sub1,sub2,...
> > > item2,sub1,sub2 ...
> > > .
> > > .
> > > twice
> > >
> > > I've never run it long enough for it to complete.
> > > I'm using 3GHz CPU on an XPS by Dell
> > >
> > > Could it be that accessing a ListView takes that long?
> > >
> > > Thanks for any help
> > >
> > >
> >
> >
>
>



Nov 20 '05 #14
Its an oil company - ChevronTexaco

Jerry

"CJ Taylor" <no****@blowgoa ts.com> wrote in message
news:vt******** ****@corp.super news.com...
That is awesome. I have to ask, what is the name of the beast you work for?
I want to say something in insurance.. but I could be wrong.

"Jerry Ham" <No*****@Sompla ce.net> wrote in message
news:Ol******** ******@TK2MSFTN GP12.phx.gbl...
53,000 computers - slightly more users as there is some shift work, etc.
where they share machines.

I am a team lead on the team that designs our desktop image (Windows,
Office, custom apps, etc) and does custom coding for our image as well. We create tools, etc. for the support staff to use.

Jerry

"CJ Taylor" <no****@blowgoa ts.com> wrote in message
news:vt******** ****@corp.super news.com...
We have 100 users here so we only use 2 of them. I understand that the reasoning for so many, was just straight out impressed by the number. =)
How many users? 50k? 100k? What do you do?

-CJ
"Jerry Ham" <No*****@Sompla ce.net> wrote in message
news:e5******** ******@TK2MSFTN GP12.phx.gbl...
> Yes - and over 2300 IP subnets and over 180 countries.
> Major sites may have several DC's, minor sites have 1, and sites with
less
> than 100 users logon over the WAN.
>
> Jerry
>
> "CJ Taylor" <no****@blowgoa ts.com> wrote in message
> news:vt******** ****@corp.super news.com...
> > You have 145 Domain Controllers???
> >
> >
> > "Jerry Ham" <No*****@Sompla ce.net> wrote in message
> > news:%2******** ********@tk2msf tngp13.phx.gbl. ..
> > > Sounds like something in your code.
> > >
> > > I've currently got a project with a listview for Active

Directory Domain
> > > controllers and properties (properties in the subitems). In our
domain,
> > > there are currently 145 DC, so 145 listview items, each with 5
subitems.
> I
> > > don't see any slowness there at all.
> > >
> > > Jerry
> > >
> > > "TryingLikeHeck " <tr************ @aol.com> wrote in message
> > > news:20******** *************** ****@mb-m16.aol.com...
> > > > I have an application that uses a LIstView.
> > > > Maybe 100 items each with 20 subitems.
> > > >
> > > > The app looks at eack item and subitem twice.
> > > > I.e., it scans the entire set of data
> > > > item1, sub1,sub2,...
> > > > item2,sub1,sub2 ...
> > > > .
> > > > .
> > > > twice
> > > >
> > > > I've never run it long enough for it to complete.
> > > > I'm using 3GHz CPU on an XPS by Dell
> > > >
> > > > Could it be that accessing a ListView takes that long?
> > > >
> > > > Thanks for any help
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 20 '05 #15
Ahhh now that just sounds fun. =)
"Jerry Ham" <No*****@Sompla ce.net> wrote in message
news:e0******** ******@tk2msftn gp13.phx.gbl...
Its an oil company - ChevronTexaco

Jerry

"CJ Taylor" <no****@blowgoa ts.com> wrote in message
news:vt******** ****@corp.super news.com...
That is awesome. I have to ask, what is the name of the beast you work for?

I want to say something in insurance.. but I could be wrong.

"Jerry Ham" <No*****@Sompla ce.net> wrote in message
news:Ol******** ******@TK2MSFTN GP12.phx.gbl...
53,000 computers - slightly more users as there is some shift work, etc. where they share machines.

I am a team lead on the team that designs our desktop image (Windows,
Office, custom apps, etc) and does custom coding for our image as well. We
create tools, etc. for the support staff to use.

Jerry

"CJ Taylor" <no****@blowgoa ts.com> wrote in message
news:vt******** ****@corp.super news.com...
> We have 100 users here so we only use 2 of them. I understand that the > reasoning for so many, was just straight out impressed by the
number.
=) >
> How many users? 50k? 100k? What do you do?
>
> -CJ
>
>
> "Jerry Ham" <No*****@Sompla ce.net> wrote in message
> news:e5******** ******@TK2MSFTN GP12.phx.gbl...
> > Yes - and over 2300 IP subnets and over 180 countries.
> > Major sites may have several DC's, minor sites have 1, and sites with less
> > than 100 users logon over the WAN.
> >
> > Jerry
> >
> > "CJ Taylor" <no****@blowgoa ts.com> wrote in message
> > news:vt******** ****@corp.super news.com...
> > > You have 145 Domain Controllers???
> > >
> > >
> > > "Jerry Ham" <No*****@Sompla ce.net> wrote in message
> > > news:%2******** ********@tk2msf tngp13.phx.gbl. ..
> > > > Sounds like something in your code.
> > > >
> > > > I've currently got a project with a listview for Active Directory > Domain
> > > > controllers and properties (properties in the subitems). In

our > domain,
> > > > there are currently 145 DC, so 145 listview items, each with 5
> subitems.
> > I
> > > > don't see any slowness there at all.
> > > >
> > > > Jerry
> > > >
> > > > "TryingLikeHeck " <tr************ @aol.com> wrote in message
> > > > news:20******** *************** ****@mb-m16.aol.com...
> > > > > I have an application that uses a LIstView.
> > > > > Maybe 100 items each with 20 subitems.
> > > > >
> > > > > The app looks at eack item and subitem twice.
> > > > > I.e., it scans the entire set of data
> > > > > item1, sub1,sub2,...
> > > > > item2,sub1,sub2 ...
> > > > > .
> > > > > .
> > > > > twice
> > > > >
> > > > > I've never run it long enough for it to complete.
> > > > > I'm using 3GHz CPU on an XPS by Dell
> > > > >
> > > > > Could it be that accessing a ListView takes that long?
> > > > >
> > > > > Thanks for any help
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 20 '05 #16
I'll look at ArrayList. This is a converted VB6 program
Thanks

"Cor" <no*@non.com> wrote in message
news:eN******** ********@tk2msf tngp13.phx.gbl. ..
Hi Active,

Slow is always subjective.

When you have a very wide Wan, you will have many thin parts in the pipeline and the listview will probably not be the most important in that.

When you are on a computer that has direct access the full datatable all the time without any data access problem, your listview will become earlier a
part of that pipeline to get the data.

I think a good comparer is explorer, that is a listview also and the user is accepting it.

Therefore, in my eyes, when your program is much slower than explorer in
colleting data, you have a problem.

Although when you use things as redim I really think, that you have to check what the arraylist of other fast ilist class can do for you.

Just a though

Cor

Nov 20 '05 #17
I'll look at that too. The listbox is only being read and the display is a
PictureBox.
Nothing shows up on the display until all at once the entire display
appears.

Thanks

"CJ Taylor" <no****@blowgoa ts.com> wrote in message
news:vt******** ****@corp.super news.com...
Just thought about this too and don't know if it was brought up, but did you try to Suspend the layout (calling SuspendLayout) which would prevent it
from being painted and taking up other valuable CPU time.

-CJ
"Cor" <no*@non.com> wrote in message
news:eN******** ********@tk2msf tngp13.phx.gbl. ..
Hi Active,

Slow is always subjective.

When you have a very wide Wan, you will have many thin parts in the pipeline
and the listview will probably not be the most important in that.

When you are on a computer that has direct access the full datatable all

the
time without any data access problem, your listview will become earlier a part of that pipeline to get the data.

I think a good comparer is explorer, that is a listview also and the

user is
accepting it.

Therefore, in my eyes, when your program is much slower than explorer in
colleting data, you have a problem.

Although when you use things as redim I really think, that you have to

check
what the arraylist of other fast ilist class can do for you.

Just a though

Cor


Nov 20 '05 #18
" active" <ac****@REMOV Ea-znet.com> schrieb
I'll look at ArrayList. This is a converted VB6 program
Thanks


You are using the ActiveX Listview, not the .NET Framework listview?? This
can explain a lot! Interop can sloooooow down things considerably - apart
from the fact CJ mentioned that one should work with the the datasource not
the UI.

(BTW, did you start the thread? Are you TryingLikeHeck? I'm unsure...)

--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #19

"Armin Zingler" <az*******@free net.de> wrote in message
news:eP******** *****@TK2MSFTNG P11.phx.gbl...
" active" <ac****@REMOV Ea-znet.com> schrieb
I'll look at ArrayList. This is a converted VB6 program
Thanks
You are using the ActiveX Listview, not the .NET Framework listview?? This
can explain a lot! Interop can sloooooow down things considerably - apart
from the fact CJ mentioned that one should work with the the datasource

not the UI.
The Properties list shows System.Windows. Forms.ListView
I think that means I'm using the >NET version. Right?
I don't actually remember deleting the old one and replacing it (I did so
much of that kind or thing.)
What made (makes?) you think I'm using the ActiveX version?


(BTW, did you start the thread? Are you TryingLikeHeck? I'm unsure...) What does BTW stand for?
Yes. I have two ISP's
If I'm always online it's because I've converted a large app and as soon as
I clear up one problem I move on to another. And I've received wonderful
insight from this group. For example, the fact that just because single
stepping in the IDE highlights a statement does mean it actually got
executed. That's something it would take a long time to surmise. -
Numerous other things, like no use looking for a way to make the IDE
automatically compile only modules that have been changed since the last
compile. I was sure I only had to find the correct switch. Very helpful to
be told to stop looking. Anyway, I really appreciate the help and I am
trying.

I suggestion about ArrayList made me try dimensioning the arrays large
enough so that redim is never required, but that didn't help. There are
other thing going that may be using the time but I wanted to be sure
ListViews were not known to be time consumming.

Thanks for all the NG's past help and in particular your past help,
Cal

--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3910
by: zapazap | last post by:
-- Pythonic control of Windows GUI application: tabs and listviews Dear Snake-charming Gurus, I have learned to manipulate some controls ("Button", "ComboBox", etc) through such means as: win32gui.SendMessage(hwnd, win32con.BM_GETCHECK, 0 ,0) win32gui.SendMessage(hwnd, win32con.CB_GETCOUNT, 0 ,0)
3
2864
by: active | last post by:
DoubleClick seems to work OK with a ListBox. However, with a ListView I never get the event fired. I looked at both the LIstBox and ListView events and neither lists the DoubleClick??? But IntellSense gives it as an option for both?? Any enlighten comments?
2
1628
by: StriderBob | last post by:
In a list box, lbox1.SetSelected(0, True) or lbox1.SelectedIndex = 0 all work fine but how do you set the selected line in a ListView, is it possible? The ListView is being used in Details-View mode, in each line the first item is a line No. (1 - 150 in this instance). I can get an index no for a line I select with the mouse but cannot find a way to programatically select a line (Specifically, for example, either select item 10 or...
4
1488
by: Waqas101 | last post by:
Hi, I have a question regarding the creation of multiple listviews during run-time. I currently have code that uses a loop to create 5 listviews with identical properties (excep for the name). Once a listview is created, it s filled with data loaded from a txt file and then the loop iterates too creat the next listview. My problem is that while I am able to create and fill the listviews, I am not actually able to perform any actions...
3
3881
by: fanny.ricour | last post by:
Hi, I have 2 ListViews, one above the other, and I need to keep them horizontally synchronised. I managed to hide the bottom LV scrollbar (user is not supposed to scroll it) and to scroll it when user clicks on the scollbar or scrollbar arrows. However, the scrollbar does not move when the user keep the scrollbar thingy (I don't know the right word) and move it without releasing the mouse. And unfortunately, that's the easiest way of...
3
2253
by: Michael.Suarez | last post by:
I have 1 contextmenu with several buttons. two different listviews sit beside each other on the same form. Both use the same context menu. I have a method for when a menu item gets clicked: private void mnuMapNew_Click(object sender, EventArgs e) {
2
6835
by: moondaddy | last post by:
Below is some xaml that is a mockup of a control I'm building. It's a shape that will be used in a diagramming tool. The red, blue and green rectangles simulate connectors on the side of the shape and will have connection lines attached to them. These connectors will be dynamically added and removed at runtime, and at all times, the group of connectors need to be centered on that side. For example, the left side shows a group of 5...
4
1776
by: =?Utf-8?B?anV2aQ==?= | last post by:
Hello, I have successfully used the sample provided in msdn for creating darg&drop between 2 listviews. Is this possible for more than 2 listviews? I have listview A,B and C and I want to do the following: Drag & Drop between: A -B
0
1068
by: Carl Malden | last post by:
I need to build a WPF application that will display two listviews. One will be the current Fields list, the other will be the destination. The problem I have is I need to be able to allow users to create, drag, and drop connectors between the listviews to customize the connections between the items in the list. Such as when a user Maps fields for database operations. Can anyone help me with this?
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10050
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9999
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.