Are ListViews really slow?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CJ Taylor

    #16
    Re: Are ListViews really slow?

    Ahhh now that just sounds fun. =)


    "Jerry Ham" <No-Spam@Somplace.n et> wrote in message
    news:e0wvALNwDH A.3536@tk2msftn gp13.phx.gbl...[color=blue]
    > Its an oil company - ChevronTexaco
    >
    > Jerry
    >
    > "CJ Taylor" <nospam@blowgoa ts.com> wrote in message
    > news:vtjsssqrq6 pl96@corp.super news.com...[color=green]
    > > That is awesome. I have to ask, what is the name of the beast you work[/color]
    > for?[color=green]
    > >
    > > I want to say something in insurance.. but I could be wrong.
    > >
    > > "Jerry Ham" <No-Spam@Somplace.n et> wrote in message
    > > news:Ol7lt8MwDH A.2340@TK2MSFTN GP12.phx.gbl...[color=darkred]
    > > > 53,000 computers - slightly more users as there is some shift work,[/color][/color][/color]
    etc.[color=blue][color=green][color=darkred]
    > > > 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[/color][/color][/color]
    well.[color=blue]
    > We[color=green][color=darkred]
    > > > create tools, etc. for the support staff to use.
    > > >
    > > > Jerry
    > > >
    > > > "CJ Taylor" <nospam@blowgoa ts.com> wrote in message
    > > > news:vtjgudt2r2 8n4b@corp.super news.com...
    > > > > We have 100 users here so we only use 2 of them. I understand that[/color][/color]
    > the[color=green][color=darkred]
    > > > > reasoning for so many, was just straight out impressed by the[/color][/color][/color]
    number.[color=blue]
    > =)[color=green][color=darkred]
    > > > >
    > > > > How many users? 50k? 100k? What do you do?
    > > > >
    > > > > -CJ
    > > > >
    > > > >
    > > > > "Jerry Ham" <No-Spam@Somplace.n et> wrote in message
    > > > > news:e5Wt$fEwDH A.2456@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[/color][/color]
    > with[color=green][color=darkred]
    > > > less
    > > > > > than 100 users logon over the WAN.
    > > > > >
    > > > > > Jerry
    > > > > >
    > > > > > "CJ Taylor" <nospam@blowgoa ts.com> wrote in message
    > > > > > news:vthr0ei6ba ic32@corp.super news.com...
    > > > > > > You have 145 Domain Controllers???
    > > > > > >
    > > > > > >
    > > > > > > "Jerry Ham" <No-Spam@Somplace.n et> wrote in message
    > > > > > > news:%235NjiwCw DHA.2452@tk2msf tngp13.phx.gbl. ..
    > > > > > > > Sounds like something in your code.
    > > > > > > >
    > > > > > > > I've currently got a project with a listview for Active[/color][/color]
    > Directory[color=green][color=darkred]
    > > > > Domain
    > > > > > > > controllers and properties (properties in the subitems). In[/color][/color][/color]
    our[color=blue][color=green][color=darkred]
    > > > > 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 " <tryinglikeheck @aol.com> wrote in message
    > > > > > > > news:2003121116 0746.07958.0000 0605@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
    > > > > > > > >
    > > > > > > > >
    > > > > > > >
    > > > > > > >
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >[/color]
    > >
    > >[/color]
    >
    >[/color]


    Comment

    • active

      #17
      Re: Are ListViews really slow?

      I'll look at ArrayList. This is a converted VB6 program
      Thanks

      "Cor" <non@non.com> wrote in message
      news:eNGBN%23Iw DHA.2712@tk2msf tngp13.phx.gbl. ..[color=blue]
      > Hi Active,
      >
      > Slow is always subjective.
      >
      > When you have a very wide Wan, you will have many thin parts in the[/color]
      pipeline[color=blue]
      > 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[/color]
      the[color=blue]
      > 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[/color]
      is[color=blue]
      > 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[/color]
      check[color=blue]
      > what the arraylist of other fast ilist class can do for you.
      >
      > Just a though
      >
      > Cor
      >
      >
      >[/color]


      Comment

      • active

        #18
        Re: Are ListViews really slow?

        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" <nospam@blowgoa ts.com> wrote in message
        news:vtjjpt34tk l75b@corp.super news.com...[color=blue]
        > Just thought about this too and don't know if it was brought up, but did[/color]
        you[color=blue]
        > try to Suspend the layout (calling SuspendLayout) which would prevent it
        > from being painted and taking up other valuable CPU time.
        >
        > -CJ
        > "Cor" <non@non.com> wrote in message
        > news:eNGBN%23Iw DHA.2712@tk2msf tngp13.phx.gbl. ..[color=green]
        > > Hi Active,
        > >
        > > Slow is always subjective.
        > >
        > > When you have a very wide Wan, you will have many thin parts in the[/color]
        > pipeline[color=green]
        > > 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[/color]
        > the[color=green]
        > > time without any data access problem, your listview will become earlier[/color][/color]
        a[color=blue][color=green]
        > > part of that pipeline to get the data.
        > >
        > > I think a good comparer is explorer, that is a listview also and the[/color][/color]
        user[color=blue]
        > is[color=green]
        > > 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[/color]
        > check[color=green]
        > > what the arraylist of other fast ilist class can do for you.
        > >
        > > Just a though
        > >
        > > Cor
        > >
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Armin Zingler

          #19
          Re: Are ListViews really slow?

          " active" <active@REMOV Ea-znet.com> schrieb[color=blue]
          > I'll look at ArrayList. This is a converted VB6 program
          > Thanks[/color]

          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




          Comment

          • active

            #20
            Re: Are ListViews really slow?


            "Armin Zingler" <az.nospam@free net.de> wrote in message
            news:ePt8i7VwDH A.556@TK2MSFTNG P11.phx.gbl...[color=blue]
            > " active" <active@REMOV Ea-znet.com> schrieb[color=green]
            > > I'll look at ArrayList. This is a converted VB6 program
            > > Thanks[/color]
            >
            > 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[/color]
            not[color=blue]
            > the UI.[/color]

            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?

            [color=blue]
            >
            > (BTW, did you start the thread? Are you TryingLikeHeck? I'm unsure...)[/color]
            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


            [color=blue]
            >
            > --
            > Armin
            >
            > http://www.plig.net/nnq/nquote.html
            > http://www.netmeister.org/news/learn2quote.html
            >[/color]


            Comment

            • Armin Zingler

              #21
              Re: Are ListViews really slow?

              " active" <active@REMOV Ea-znet.com> schrieb[color=blue]
              >
              > "Armin Zingler" <az.nospam@free net.de> wrote in message
              > news:ePt8i7VwDH A.556@TK2MSFTNG P11.phx.gbl...[color=green]
              > > " active" <active@REMOV Ea-znet.com> schrieb[color=darkred]
              > > > I'll look at ArrayList. This is a converted VB6 program
              > > > Thanks[/color]
              > >
              > > 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[/color]
              > not[color=green]
              > > the UI.[/color]
              >
              > The Properties list shows System.Windows. Forms.ListView
              > I think that means I'm using the >NET version. Right?[/color]

              Right.
              [color=blue]
              > 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?[/color]

              When you upgrade a VB6 app, the ActiveX listview is not replaced by the
              managed Winforms version.
              [color=blue][color=green]
              > > (BTW, did you start the thread? Are you TryingLikeHeck? I'm
              > > unsure...)[/color]
              > What does BTW stand for?[/color]

              by the way


              --
              Armin

              Comment

              • active

                #22
                Re: Are ListViews really slow?

                > > What does BTW stand for?[color=blue]
                >
                > by the way
                >[/color]
                One more mystery cleared up

                Cal


                Comment

                Working...