[m-dev.] efficiency situation with file offset tracking

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Feb 10 16:08:21 AEDT 2000


On 10-Feb-2000, Robert_William HUTTON <rwh at ecr.mu.oz.au> wrote:
> Well, after much stuffing around and many recompilations due to
> home/mercury0 being full, I have managed to profile cat.m with and without
> file offset tracking in io.m.  The top parts of the profiles follow.

So that's what, 8% slow-down?, for a program spending almost all it's time
doing I/O.  That's probably acceptable.

It might be good to also check the overhead for a version of cat that
does I/O character at a time (via io__read_char) rather than line at
a time (via io__read_line_as_string).  If that is not significantly
worse, then I'd say go ahead and commit this change.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list