delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/31/20:46:58

From: dcasale AT my-deja DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Elapsed time?
Date: Wed, 01 Nov 2000 01:34:00 GMT
Organization: Deja.com - Before you buy.
Lines: 35
Message-ID: <8tnru8$r4t$1@nnrp1.deja.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1001024093648 DOT 24828K-100000 AT is> <8ta628$4t7$1 AT nnrp1 DOT deja DOT com> <7458-Fri27Oct2000080225+0200-eliz AT is DOT elta DOT co DOT il>
NNTP-Posting-Host: 199.249.234.30
X-Article-Creation-Date: Wed Nov 01 01:34:00 2000 GMT
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)
X-Http-Proxy: 1.1 x57.deja.com:80 (Squid/1.1.22) for client 199.249.234.30
X-MyDeja-Info: XMYDJUIDdcasale
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <7458-Fri27Oct2000080225+0200-eliz AT is DOT elta DOT co DOT il>,
  djgpp AT delorie DOT com wrote:
> > From: dcasale AT my-deja DOT com
> > Newsgroups: comp.os.msdos.djgpp
> > Date: Thu, 26 Oct 2000 21:00:59 GMT
> > >
> > > > My program is, obviously, extremely disk-intensive.  I'm caching
> > > > reads and writes with separate 5MB buffers.  Could this cause
> > > > the problem?
> > >
> > > No disk I/O should ever affect the system clock.
> >
> > Are you absolutely sure about that?
>
> Yes.  The timer interrupt has the highest priority, and so should not
> be affected by almost anything else.

I think I know where the slowdown is coming from now.  I tried
temporarily turning off the file compression and encryption to make
sure my program handled it correctly, with the new buffering code
changes, and the slowdown disappeared entirely.  Somehow, file
buffering has caused what used to be about a 10% slowdown to balloon to
a 50% slowdown, but it's coming from inside the compression code.
What's annoying is that this code makes _no special interrupt calls_ at
all.  It's almost pure C code, in fact, with an interface wrapper class
for the program to call.

Blurgh.  -_-

Damon Casale, damon AT WRONG DOT redshift DOT com (remove the obvious)
Okay, this is just plain stupid.


Sent via Deja.com http://www.deja.com/
Before you buy.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019