🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.msdos.programmer
1 messages
1 total messages Started by Kevin O'Gorman Sun, 24 Jun 1990 17:05
Borland Turbo Profiler; cprintf unexpectedly slow; CGA monitor
#521
Author: Kevin O'Gorman
Date: Sun, 24 Jun 1990 17:05
25 lines
1756 bytes
I was running through the examples in my new Turbo Profiler, and one of
them ran very differently from what the manual said I should expect.

They replaced printf calls with cprintf calls because they are "faster"
than printf.  However, the screen scrolling under cprintf is so painfully
slow that I can watch it 'wash' its way down the screen.  The running time
of the routine, instead of dropping somewhat, went up by a factor > 10!

Does anyone have an idea what the problem is, or where I should look?
The obvious suspects seem to be these:
	1 The profiler (unlikely)
	2 The cprintf code itself
	3 The console driver (I use ANSI.SYS)
	4 The CGA adapter
	5 The fact that I'm not running monochrome.

The next sample removed most of the linefeeds, and indeed ran pretty fast
so long as I arranged for the screen to start out mostly blank so that
there was no scrolling.

Thanks.
-- 
Kevin O'Gorman ( kevin@kosman.UUCP, kevin%kosman.uucp@nrc.com )
voice: 805-984-8042 Vital Computer Systems, 5115 Beachcomber, Oxnard, CA  93035
Non-Disclaimer: my boss is me, and he stands behind everything I say.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads