On Sat, 1 May 2004, BAHCL wrote:

> FreeDOS Edit takes more than 25 seconds to load a file with 800 lines
> (28k) in DOSEMU while M$ Edit is just a split of a second.

This is a bit of a problem between DOSEMU and FD Edit: edit reads the file
in 512-byte chunks and for every 512 bytes it checks the keyboard and the
mouse (the handhake() call in message.c).

DOSEMU thinks that Edit is actually polling the mouse or keyboard and
decides to sleep a bit. I think I can solve this on the DOSEMU side though
but it will take some more finetuning.

For now you can reduce the 25 seconds by setting $_hogthreshold to 0 or a
higher value, or at runtime using "speed".
example
c:\>speed 0
c:\>edit foo.txt
(comes up instantly but DOSEMU will use 100% CPU -- on my laptop the fan
 will start spinning)

c:\>speed 5
c:\>edit foo.txt
(slower, but quicker than the default)

the default is "1": slowest but nicest for the CPU.

Bart



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to