Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2004-08

Why is FP Win32 Version running and compiling much slower?

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Zhang Zheng

My operating system is Windows 98. I found that the Win32 Version of F.P runs much slower than DOS Version, no matter compiling or typing in programs.What cause this difference? The Memory?

Except for the compiling mode and memory parametres, are there any other greatest differences between win32 version and dos version?

Steven

Reply by email

Florian Klaempfl
to Zhang Zheng
Zhang Zheng wrote
My operating system is Windows 98. I found that the Win32 Version of F.P runs much slower than DOS Version, no matter compiling or typing in programs.What cause this difference? The Memory? Except for the compiling mode and memory parametres, are there any other greatest differences between win32 version and dos version?

The console mode of win98 sucks. Under Win2k or WinXP it's much faster though it isn't as fast as the unix versions.

Steven ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿߥÏéjÇ–f¢–X¬·÷ésúZ±Æ¥þX¬¶Ïß­ç©jÇ—ú+‚m§ÿÿ–+-³÷ëyêZ±Æ¥þŠàþf¢–f§þX¬¶)ߣ÷ésúZ±Æ¥

Reply by email

David Emerson

Try holding down the SHIFT key while your program is executing. (?!)

I discovered this while doing intense text output to the console (where the speed increase is easy to observe directly). Win98 console text output consistently goes twice as fast or faster while holding the shift key, particularly if the program has been executing for a while (5-10 seconds).

I haven't tried this during compilation (or during execution of programs which don't do intense text output) but it's worth a shot.

My hypothesis is that win98 gives the console low priority for system resources. If you hold down the shift key while executing, windoze concludes that you're interacting with the console, and thus will give the console more processor cycles (instead of using them on background processes).

~David

(I have this image in my mind of a rock resting on top of a shift key to hold it down)

Reply by email