Click here to Skip to main content
13,631,355 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
Dear

I install my supermarket application Xp and windows 7 OS. when I open xp os it open quickly but windows 7 take long time



Backend : SQL it install windows 2008 server OS

(window server os : Window Firewall disable time only my application open. I need do windows firewall enable.) please tell me your advice
Posted 22-Nov-13 7:49am
Comments
Ron Beyer 22-Nov-13 14:02pm
   
Way too little information to go on here. What is the hardware in the two different systems? What version of the OS (64-bit/32-bit), what is the network to the database server from the two computers?

Have you debugged at all (debug on the slow machine, hit the pause when you notice the delay, see what line its on)? There are additional things here that we can't see or know to make a good answer for you.
‭011111100010‬ 22-Nov-13 14:04pm
   
Check event viewer. Trace it. We can't see anything so there's no way we can know.
Sergey Alexandrovich Kryukov 22-Nov-13 15:36pm
   
Not a question. There is no a common recipes. Time your code, find out bottleneck, etc...
—SA

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Please see my comment to the question. Time fragments of your code to find bottlenecks. For timing with very good accuracy, you can use the class System.Diagnostics.Stopwatch, for logging — the class System.Diagnostics.EventLog:
http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog%28v=vs.110%29.aspx[^].

Consider finding and using some code profiler: http://en.wikipedia.org/wiki/Profiling_%28computer_programming%29[^].

If, with all your improvements, application start up it still too slow, use some splash screen: http://en.wikipedia.org/wiki/Splash_screen[^].

—SA
  Permalink  
v2
Comments
Ron Beyer 22-Nov-13 15:53pm
   
Hope you mean "splash screen", using a flash screen may give the user epilepsy. Either way its a good method for letting the user pass the time :)
Sergey Alexandrovich Kryukov 22-Nov-13 16:37pm
   
Oh gosh! Thank you very much for the fix.
Unfortunately, when you sometimes forget what you just wanted to write, get distracted and then mechanically write something else, the spell checker does not care. :-)
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.180712.1 | Last Updated 22 Nov 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100