473,412 Members | 2,096 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Slow As Molasses


Is it me?

Or do Windows Forms run as slow as molasses?

I launch a child form from a parent and it takes ages to appear?

Why ?!?!

Jul 26 '05 #1
11 1780
I have noticed that the first time that you open a .NET application that it
takes forever, but after the initial load it will load very quickly. The
Visual Studio .NET 2003 IDE is a perfect example. Restart your computer,
load VS.NET 2003 and see how long it takes to open. Closed VB.NET and start
if up again. Loads almost instantly.


"John Bailo" <ja*****@texeme.com> wrote in message
news:_c********************@speakeasy.net...

Is it me?

Or do Windows Forms run as slow as molasses?

I launch a child form from a parent and it takes ages to appear?

Why ?!?!

Jul 27 '05 #2
Hi John,

It shouldn't take long. What does the second form do in the load event or
in the initialization?

Bernie Yaeger

"John Bailo" <ja*****@texeme.com> wrote in message
news:_c********************@speakeasy.net...

Is it me?

Or do Windows Forms run as slow as molasses?

I launch a child form from a parent and it takes ages to appear?

Why ?!?!

Jul 27 '05 #3
John Bailo <ja*****@texeme.com> wrote:
Is it me?

Or do Windows Forms run as slow as molasses?

I launch a child form from a parent and it takes ages to appear?

Why ?!?!


WinForms in general is sluggish for me.
Jul 27 '05 #4
John Bailo wrote:
Or do Windows Forms run as slow as molasses?


I find that the first time the application loads, it is slow. But
thereafter, accessing a form that has been loaded before is fast. This
is inline with the way that WinForms and .NET was designed to work.

--
Derek Davidson
Take the S4N Poll
http://s4n.no-ip.biz/s4npoll/intro.aspx
Poll active until 31 July 2005
Jul 27 '05 #5
John - is there anything special happening when the form loads (ie making a
trip to the db to grab data)? If so, you may want to use a separate thread
or async delegate to increase the responsiveness of the UI. If that's not
the problem, it may well just be due to the inherent performance associated
with a managed runtime. Does this problem persist across the board or just
on a specific form or app?
"John Bailo" <ja*****@texeme.com> wrote in message
news:_c********************@speakeasy.net...

Is it me?

Or do Windows Forms run as slow as molasses?

I launch a child form from a parent and it takes ages to appear?

Why ?!?!

Jul 27 '05 #6
> Is it me?
Or do Windows Forms run as slow as molasses?
I launch a child form from a parent and it takes ages to appear?

Why ?!?!

It depends on what you are doing in that loding phase of the form.
Only the first time, the loading is slow since the IL is compiled into
machine code on the fly the first time you use that part of the code. But
once loaded it should run near c++ speed, tests here suggests 5% slower on
average.

Unlike C++ unmanaged code (aka conventional exe code), the code is not
compiled and optimized at compile time at the developrs PC, but at the CLR
on the users machine, optimizing it for that machine. In theory in tim you
same program wil actually run faster when new versions of the .NET framework
gets distributed. No need of recompiling the source code.

One very nice side-effect in this is that you can create a neutral .NET
program, that will run as pure 32 bit when you run it on a 32 bit machine
and pure 64 bit on a 64 bit machine.Only one distributable exist in this
case. (see upcoming Visual Studio 2005 for this)
Jul 27 '05 #7
W.G. Ryan MVP wrote:
John - is there anything special happening when the form loads (ie making a
trip to the db to grab data)? If so, you may want to use a separate thread
or async delegate to increase the responsiveness of the UI. If that's not
the problem, it may well just be due to the inherent performance associated
with a managed runtime. Does this problem persist across the board or just
on a specific form or app?
Great idea...it's populating a combo box from a web method (connected to
a database)...so I'll thread that.

However, my impression from other forms in this app, that are not
database bound, is that they are slow.

I even broke out of VS.NET which I had been assuming was the reason that
the forms were so slow, and, using a version compiled for Release, and
found that they were slow.

"John Bailo" <ja*****@texeme.com> wrote in message
news:_c********************@speakeasy.net...
Is it me?

Or do Windows Forms run as slow as molasses?

I launch a child form from a parent and it takes ages to appear?

Why ?!?!


Jul 27 '05 #8
Timing should allow to narrow down possible problems. The next time you
could start with an empty form and time as you go so that you can see how it
evolves as you add components...
--
Patrice

"John Bailo" <ja*****@texeme.com> a écrit dans le message de
news:_c********************@speakeasy.net...

Is it me?

Or do Windows Forms run as slow as molasses?

I launch a child form from a parent and it takes ages to appear?

Why ?!?!

Jul 27 '05 #9
John,

Hi guys, I am not a native English speaker, is Molasses that what is a very
good drinkable when you have distillate it?

I could not resist

:-)

Cor
Jul 27 '05 #10
Molasses is a thick syrup and IMHO, quite disgusting. It's kind of like old
motor oil from your car, with some sugar added to it
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:e6**************@TK2MSFTNGP15.phx.gbl...
John,

Hi guys, I am not a native English speaker, is Molasses that what is a
very good drinkable when you have distillate it?

I could not resist

:-)

Cor

Jul 27 '05 #11
Hi Cor,

I think you have too much time on your hands!

Regards,

Bernie

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:e6**************@TK2MSFTNGP15.phx.gbl...
John,

Hi guys, I am not a native English speaker, is Molasses that what is a
very good drinkable when you have distillate it?

I could not resist

:-)

Cor

Jul 27 '05 #12

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

Similar topics

2
by: David | last post by:
Hi, We have an internal network of 3 users. Myself & one other currently have individual copies of the front-end MS Access forms and via our individual ODBC links we have used the: File > Get...
5
by: DFS | last post by:
Situation: Access 2003 front-end, containing links to Access 2003, SQL Server 2000, and DB2 tables. None of these tables are local. Hardware: IBM ThinkCentre, 10/100 Ethernet LAN Problem:...
0
by: Celarian | last post by:
I've written a function, Despeckle, to remove noise from Bitmaps. The English description of the algorithm I've implemented might read as follows: For each pixel in the image, create an array...
11
by: John Bailo | last post by:
Is it me? Or do Windows Forms run as slow as molasses? I launch a child form from a parent and it takes ages to appear? Why ?!?!
50
by: diffuser78 | last post by:
I have just started to learn python. Some said that its slow. Can somebody pin point the issue. Thans
4
by: Jules Winfield | last post by:
I'm using VS2005. I have a solution consisting of twelve projects. All projects are console/service apps except for one which is a WinForms app. There are no web projects. I'd say that I'm at...
3
by: Michael | last post by:
I work with a highly programmed Access database (some 15,000 lines of VBA code, much of it automating data entry on forms -- and believe me, it's very tight code). In Access 97, 2000, 2002, and...
4
by: Andrew Jackson | last post by:
I am writing a newsgroup client. I have the protocol figured out. But I get slow transfer speeds off any of the network objects read the data from For example one of the commands for a news...
1
by: Ted Kennedy | last post by:
I have an Access Data Project (.adp) connecting to a SQL Server 2005 DB over the internet. The project has been running in Access 2003 for a couple of years, and performance has been very good....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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,...
0
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...
0
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...

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.