Mail Archives: djgpp/2000/11/01/04:42:47
On Wed, 1 Nov 2000 dcasale AT my-deja DOT com wrote:
> 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.
Fascinating! Never heard of code that slowed down the system timer,
by just crunching some CPU-intensive computations.
> 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.
I suggest to strip the offending code to the bare minimum that still
exhibits the problem, and post it here (as ASCII text, not as binary
attachment). If you cannot post, or if it's very large, please
describe in some pseudo-language the algorithm that the code uses.
- Raw text -