Hi, I did
xdos -C -D+D -O 2>dosEmu.log
cat dosEmu.log | grep INT | sed -e 's/at.*://g' -e 's/BX.*//g' | sort | uniq -c | sort 
-n | less

to get a quick impression of "what are popular int 21/2f functions?".
Result: FreeCOM often splits CON output into many int 21.40 calls.
DEFRAG queries date / time (int 21.2a / 21.2c) ridiculously often
(EDIT does not do this: It checks 40[6c] time count instead and only
calls the int 21 date / time stuff once per second for the time display
and uses 1 timer tick (0.05 sec roughly) as smallest time unit...)
... FreeCOM also seems to call int 21.52 (get list of lists) and int 21.58
(memory allocation strategy / UMB link state) "far" more often than one
would expect.
I did this check because I was curious whether there would be some
extremely obvious bottlenecks which should be optimized. Does not look
as if this would be the case - date / time check is hopefully only called
when DEFRAG has nothing else to do and int 21.40 write only happens for
screen output and users cannot read with infinite speed anyway ;-)).

Some alternative testing method:

> xdos -C -D+# -O 2>&1 | egrep -v 'int.0x28|int.0x1c'

This "default interrupt" log selection has the strange property of
spamming me with int 28 (dos idle) and int 1c (timer tick) log lines
(okay, int 1c log line is nice if you want a "tiny rough timestamp"
to be included in the log) while at the same time having none of the
DIR-caused int 21 things logged (only logs very few top interest int 21
things, among which - alas - int 21.2c get time...).

As I have redir-drives in my PATH, FreeCOM calls int 2f.1123 "often".

Whatever. Does not look like we should optimize FreeDOS or tools - or
would less date / time checks actually speed up DEFRAG?

Int 2f.1108 get remote file (23 was qualify name) is popular, too.
The FreeCOM prompt uses int 21.40 / 07 ... and the obvious other stuff.
Would it make sense to speed up int 21.40 (for con / disk) for
cases where programs transfer data in many small chunks? And 21.3f (read)?

Eric


-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to