Re: [Mono-winforms-list] Very slow performance in WinForms ListView

2009-04-22 Thread Kolhe, Jyoti B



 I'm extensively using ListView (several forms with different listviews 
 with thousands of items each) with Mono 2.4 under Fedora 11 Beta, 
 openSUSE 11.1 and Mono SVN on Ubuntu 9.04 RC. Performance if very good 
 and loading a listview with 5000 items will always take less than a 
 second, even on an old Athlon XP.

Did you get good performance by using BeginUpdate() and EndUpdate() calls on 
the listview or even without them?

-Jyoti
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] Very slow performance in WinForms ListView

2009-04-22 Thread Kolhe, Jyoti B
Thanks for the tip. This helped my list view performance.

-Jyoti

From: Ernesto [mailto:equista...@gmail.com]
Sent: Wednesday, April 22, 2009 11:53 AM
To: Kolhe, Jyoti B
Cc: mono-winforms-list@lists.ximian.com
Subject: Re: [Mono-winforms-list] Very slow performance in WinForms ListView

Le 22/04/2009 14:33, Kolhe, Jyoti B a écrit :

I'm extensively using ListView (several forms with different listviews

with thousands of items each) with Mono 2.4 under Fedora 11 Beta,

openSUSE 11.1 and Mono SVN on Ubuntu 9.04 RC. Performance if very good

and loading a listview with 5000 items will always take less than a

second, even on an old Athlon XP.





Did you get good performance by using BeginUpdate() and EndUpdate() calls on 
the listview or even without them?





I always use BeginUpdate and EndUpdate. Usually, I also use the form's 
SuspendLayout() and ResumeLayout() methods, like this:

pre

this.SuspendLayout();
MyListView.BeginUpdate();
MyListView.Items.Clear();

for(;;) {
ListViewItem Itm = MyListView.Items.Add(blah blah);

Itm.SubItems.Add(blah blah);
Itm.SubItems.Add(blah blah);
Itm.SubItems.Add(blah blah);
}

MyListView.EndUpdate();
this.ResumeLayout();

/pre

this beign the container form.

Hope it helps.

Regards,
Ernesto
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] Very slow performance in WinForms ListView

2009-04-22 Thread Ernesto

Le 22/04/2009 14:33, Kolhe, Jyoti B a écrit :

I'm extensively using ListView (several forms with different listviews
with thousands of items each) with Mono 2.4 under Fedora 11 Beta,
openSUSE 11.1 and Mono SVN on Ubuntu 9.04 RC. Performance if very good
and loading a listview with 5000 items will always take less than a
second, even on an old Athlon XP.
 


Did you get good performance by using BeginUpdate() and EndUpdate() calls on 
the listview or even without them?

   


I always use BeginUpdate and EndUpdate. Usually, I also use the form's 
SuspendLayout() and ResumeLayout() methods, like this:


pre

this.SuspendLayout();
MyListView.BeginUpdate();
MyListView.Items.Clear();

for(;;) {
ListViewItem Itm = MyListView.Items.Add(blah blah);

Itm.SubItems.Add(blah blah);
Itm.SubItems.Add(blah blah);
Itm.SubItems.Add(blah blah);
}

MyListView.EndUpdate();
this.ResumeLayout();

/pre

this beign the container form.

Hope it helps.

Regards,
Ernesto

___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] Very slow performance in WinForms ListView

2009-04-21 Thread jyoti_C#

Using BeginUpdate() and EndUpdate() worked well for adding items. But, I
still see very slow listview refresh when a column is resized. Do I need to
capture these events and add above function calls in the event handler?
Basically, the problem is that refresh of listview is very slow. Is there
any solution that will fix the list view performance universally(column
reszing, scrolling, coming out of screensaver etc.) and not just when I add
items.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Very-slow-performance-in-WinForms-ListView-tp20725159p23162133.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] Very slow performance in WinForms ListView

2009-04-21 Thread Carlos Alberto Cortez
I commited some changes some weeks ago (not available in 2.4, but they will
be ready for 2.6) that improve the rendering, with less flicker changing
columns width/position. But anyway, would you mind filling a bug report with
a test case? There are different things that can affect the performance of
the ListView, and unfortunately we don't have an universally way to make
fast the ListView (such ListView.SuperFast = true).

If we have a specific usage scenario, we can try to improve the performance
- specially when other users have notified of the bad performance and we
have tuned the performance in the past.

Carlos.

2009/4/21 jyoti_C# jyoti.b.ko...@intel.com


 Using BeginUpdate() and EndUpdate() worked well for adding items. But, I
 still see very slow listview refresh when a column is resized. Do I need to
 capture these events and add above function calls in the event handler?
 Basically, the problem is that refresh of listview is very slow. Is there
 any solution that will fix the list view performance universally(column
 reszing, scrolling, coming out of screensaver etc.) and not just when I add
 items.

 Thanks.
 --
 View this message in context:
 http://www.nabble.com/Very-slow-performance-in-WinForms-ListView-tp20725159p23162133.html
 Sent from the Mono - WinForms mailing list archive at Nabble.com.

 ___
 Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-winforms-list

___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] Very slow performance in WinForms ListView

2009-04-21 Thread Ernesto
El 27/11/2008 17:27, JvD escribió:
 Hello,

 I'm new to Mono. I have downloaded and installed Mono2 onto Ubuntu V8.04.
 After that I wrote a small Winforms program adding 100 lines to a listview,
 repeating that for 10 times. Running the program on WindowsXP, adding 100
 lines takes between 15 and 30 msec each time. Running the same program on
 Ubuntu and Mono the first cycle takes 1,5 seconds and the last one even
 takes 15 seconds.
 Can somebody help me in fixing this problem since this performance is way to
 slow for my application.


I'm extensively using ListView (several forms with different listviews 
with thousands of items each) with Mono 2.4 under Fedora 11 Beta, 
openSUSE 11.1 and Mono SVN on Ubuntu 9.04 RC. Performance if very good 
and loading a listview with 5000 items will always take less than a 
second, even on an old Athlon XP.

Although, I can remember a recursion problem that affected the listview 
some time ago. I don't have access to the Mono source code right now but 
maybe you or someone else can take a look at the Listview changelog to 
see when was this recursion problem fixed.

Anyway, I'm sure a more recent version of Mono will work. Here are some 
very straightforward instructions to install Mono 2.4 on Ubuntu:

http://blog.ruski.co.za/page/Install-Mono-on-Ubuntu.aspx

Regards,
Ernesto


___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] Very slow performance in WinForms ListView

2009-04-20 Thread jyoti_C#



JvD wrote:
 
 Hello,
 
 I'm new to Mono. I have downloaded and installed Mono2 onto Ubuntu V8.04.
 After that I wrote a small Winforms program adding 100 lines to a
 listview, repeating that for 10 times. Running the program on WindowsXP,
 adding 100 lines takes between 15 and 30 msec each time. Running the same
 program on Ubuntu and Mono the first cycle takes 1,5 seconds and the last
 one even takes 15 seconds.
 Can somebody help me in fixing this problem since this performance is way
 to slow for my application.
 
 Hope to read something soon.
 
 JvD
 

I am seeing a similar issue under mono/Linux. I am using Mono 2.4 verison. I
have verified it by checking mono --version. I have C# test application
which adds numbers from 0 to 999 to a listview when a button is clicked. On
Windows/.NET this operation is very fast, whereas under Mono/Linux the
listview update takes considerably long time. I can see each row being
added. Is there any way to make listview update faster?

Thanks, Jyoti

-- 
View this message in context: 
http://www.nabble.com/Very-slow-performance-in-WinForms-ListView-tp20725159p23147493.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] Very slow performance in WinForms ListView

2009-04-20 Thread Jonathan Pobst
 Is there any way to make listview update faster?

Before you begin adding items, call ListView.BeginUpdate.  When you are 
finished adding items, call ListView.EndUpdate.

Jonathan
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] Very slow performance in WinForms ListView

2008-11-28 Thread Stifu

Hello,

When testing on Windows, were you testing with the Microsoft .NET framework,
or Mono?
Anyway, if you find significant performance problems, then report a bug with
all the details (http://mono-project.com/Bugs). There are a couple of
ListView bugs already reported, but yours is apparently not known yet.
-- 
View this message in context: 
http://www.nabble.com/Very-slow-performance-in-WinForms-ListView-tp20725159p20730525.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] Very slow performance in WinForms ListView

2008-11-28 Thread Ernesto
JvD a écrit :
 Hello,

 I'm new to Mono. I have downloaded and installed Mono2 onto Ubuntu V8.04.
 After that I wrote a small Winforms program adding 100 lines to a listview,
 repeating that for 10 times. Running the program on WindowsXP, adding 100
 lines takes between 15 and 30 msec each time. Running the same program on
 Ubuntu and Mono the first cycle takes 1,5 seconds and the last one even
 takes 15 seconds.
 Can somebody help me in fixing this problem since this performance is way to
 slow for my application.
   
How did you install Mono 2 on Ubuntu 8.04? Did you pulled it from 
Jaunty? Because as far as I know, the current Mono version on Ubuntu is 
1.9.1, even if you installed the mono-2.0-devel package. Can you please 
confirm that you are running Mono versión 2.0.1 by doing mono --version 
on a console?

I asking because this sound like a double-recursion bug present in older 
versions (up to 1.9.1_2, I think), but not on the current 2.0.1.
I am extensively using ListViews with thousands of items and haven't had 
any speed issue since 2.0.

Regards,
Ernesto

___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list