473,407 Members | 2,306 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,407 software developers and data experts.

Start too slow...

I made a cuple of projects using c#, it's grate and still learning lots,
but, i find that the first time a run tha app it gets really solw to start.
The app only loads a form and is not conections, not validations and not
complicated processes before start. I make a realise compilation but still
slow.
Is there anything I can do to make faster to start the project ?

Thank's
Nov 17 '05 #1
3 1758
Hello

Yes, there is an ability to make startup faster. You need to use NGEN.EXE
(Native Image Generator). It will generate platform dependent code for you
system and save it in native image cache on your system.
--
With best regards,
Andrew

http://www.codeproject.com/script/pr...asp?id=1181072
"ooooscar" <os*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I made a cuple of projects using c#, it's grate and still learning lots,
but, i find that the first time a run tha app it gets really solw to
start.
The app only loads a form and is not conections, not validations and not
complicated processes before start. I make a realise compilation but still
slow.
Is there anything I can do to make faster to start the project ?

Thank's

Nov 17 '05 #2
Andrew Kirillov wrote:
Yes, there is an ability to make startup faster. You need to use NGEN.EXE
(Native Image Generator). It will generate platform dependent code for you
system and save it in native image cache on your system.


But make sure you read the article at
http://msdn.microsoft.com/msdnmag/is...n/default.aspx , it has
many interesting details on ngen, including information about the fact
that it won't necessarily speed up your application, and specifically the
startup time, at all.
Oliver Sturm
--
omnibus ex nihilo ducendis sufficit unum
Spaces inserted to prevent google email destruction:
MSN oliver @ sturmnet.org Jabber sturm @ amessage.de
ICQ 27142619 http://www.sturmnet.org/blog
Nov 17 '05 #3
In addition to Andrew and Oliver's suggestions you might wish to read my
article on usin NGEN at install time.

See Windows Forms Tips and Tricks for details.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"ooooscar" <os*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I made a cuple of projects using c#, it's grate and still learning lots,
but, i find that the first time a run tha app it gets really solw to
start.
The app only loads a form and is not conections, not validations and not
complicated processes before start. I make a realise compilation but still
slow.
Is there anything I can do to make faster to start the project ?

Thank's

Nov 17 '05 #4

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

Similar topics

0
by: Dhammika | last post by:
Outlook Express6 on Windows XP professional has suddenly became very slow to start.Once you click the icon the opening logo appears and thereafter it takes more than a minute to start outlook...
3
by: Mythran | last post by:
I've noticed that no matter which language I choose and no matter how small the application, it still takes about 3-5 seconds to start up compared to vb's 1-3 seconds startup on an average SMALL...
5
by: Sean Dudley | last post by:
I am currently enumerating windows via the EnumWindows API. I noticed that for some reason the very first time I call my enumwindows routine (inside or outside of a thread) it seems to be very...
5
by: Dean Slindee | last post by:
I have looked everywhere I can think of for the .exe name of the Windows Picture and Fax Viewer. Anybody know what it's named? Thanks, Dean Slindee
37
by: ales | last post by:
Hello, I have a problem with creation of new thread. The method .Start() of newly created thread delays current thread for 0 - 1 second. Cpu while delay occurs is about 5%. Any idea? Here...
4
by: magne.bergfjord | last post by:
I am new to web services, and wonder if it is possible to have a web service run all time and start the constructor before anyone calls any web method. My problem is that a lot of data is read in...
4
by: =?utf-8?B?Qm9yaXMgRHXFoWVr?= | last post by:
Hello, what is the use-case of parameter "start" in string's "endswith" method? Consider the following minimal example: a = "testing" suffix="ing" a.endswith(suffix, 2) Significance of...
53
by: yinglcs | last post by:
Hi, In java, there is an 'indexOf' function in String which does this: indexOf(String str) Returns the index within this string of the first occurrence of the specified substring. is there...
9
by: SAL | last post by:
I have an ASP.NET 2.0 app that takes about 17 seconds to load on first startup but then is very fast after that. As I understand it from some posts in June, this is caused by the loading of the App...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.