Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 4th, 2005, 8:34 PM   #1
Senger
Programmer
 
Join Date: Oct 2005
Location: Vancouver, Canada
Posts: 47
Rep Power: 0 Senger is on a distinguished road
Why do the smallest apps take the most time to execute...?

This has nothing to do with anything else, but it's something a bit odd.

I use a Win 2000 Professional box at work. Oddly, when I try opening the Print or Page Setup dialogs in Notepad or Wordpad, those dialogs take forever to open...yet when I print or do page setup in Word, the boxes open immediately. It's bizarre, because by any measure, Notepad and Wordpad should take up less memory and CPU time than anything in the behemoth that is Word! I don't think it's an issue of caching either...printing in Notepad and page setup in Wordpad always take a long time to get going. It's just really odd.

Any ideas? (Yes, I know: "Why don't you use <insert name of non-MS text editor here>?" Good question. Notepad and Wordpad are pretty crappy as text editors go. Maybe it's time to install Textpad or something else.)
__________________
It can be proved that you can watch streaming video on a Turing machine. The question is, why would you want to?
Senger is offline   Reply With Quote
Old Nov 4th, 2005, 9:09 PM   #2
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,613
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
They both take the same amount for me. both Word is quick and so is notepad and wordpad. Sorry I dont have a clue why that would be like that for you.
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote
Old Nov 4th, 2005, 9:09 PM   #3
Senger
Programmer
 
Join Date: Oct 2005
Location: Vancouver, Canada
Posts: 47
Rep Power: 0 Senger is on a distinguished road
I'm not complaining: it's not a problem. I'm just intrigued....
__________________
It can be proved that you can watch streaming video on a Turing machine. The question is, why would you want to?
Senger is offline   Reply With Quote
Old Nov 4th, 2005, 9:56 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Have you defragged recently? Does your hard-drive light do a lot of flickering while these apps are loading?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Nov 4th, 2005, 9:57 PM   #5
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 730
Rep Power: 4 Dameon is on a distinguished road
On just about any modern machine, notepad and wordpad load almost instantly. Your case is not one that I am familiar with.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Nov 5th, 2005, 1:48 AM   #6
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
same here, it's probably machine-dependant. there's one computer in the computer lab at school that almost had me throwing the monitor across the room today because of stuff like this.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Nov 5th, 2005, 3:51 AM   #7
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 482
Rep Power: 3 ivan is on a distinguished road
that's strange... I had a similar problem with 'find'...
ivan is offline   Reply With Quote
Old Nov 5th, 2005, 4:19 AM   #8
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 3 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
As DaWei suggested, try to defrag you harddrive with the windows instalation.
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Nov 5th, 2005, 1:18 PM   #9
Senger
Programmer
 
Join Date: Oct 2005
Location: Vancouver, Canada
Posts: 47
Rep Power: 0 Senger is on a distinguished road
Well, yes, the hard drive is in desparate need of some cleanup. Lots of unneeded, undeleted binaries, that sort of thing; the disk is probably a veritable patchwork of free vs. used space. Thanks for all your tips.

(It's not as bad as it once was. I once had to install Oracle Server on my machine to do some testing; it took up so much disk space, I ran out of virtual memory! Since then, I can't recall if I've defragged.)

I'll try some serious disk maintenance, then see if it's still an issue. It's just that as I noted, oddly, processor/memory-intensive juggernauts like Word seem to run fine; it's these small, humble programs that seem to take long to do things.

Of course, to really start afresh, there's always
format c:
but MIS would have a fit.
__________________
It can be proved that you can watch streaming video on a Turing machine. The question is, why would you want to?
Senger is offline   Reply With Quote
Old Nov 5th, 2005, 1:28 PM   #10
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
My gosh, just start defrag when you leave for the day. File fragmentation doesn't have a lot to do with whether or not a program is a juggernaut. Disk drives are so fast these days that no one seems to appreciate that they are STILL orders of magnitude slower than memory accesses. It takes milliseconds to move the head about on its little leadscrew, even on a small platter. Rotation of the platter until the appropriate data is under the head isn't instantaneous, either. Is 7200 RPM slow or fast? Are you trying to hop on a merry-go-round, or access data rapidly? It's all relative.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:38 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC