Xref: utzoo alt.msdos.programmer:1811 comp.sys.ibm.pc.programmer:2180 Path: utzoo!mnetor!geac!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!rpi!crdgw1!ge-dab!nbc1!philabs!ttidca!quad1!srhqla!nrcvax!kosman!kevin From: kevin@kosman.UUCP (Kevin O'Gorman) Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer Subject: Borland Turbo Profiler; cprintf unexpectedly slow; CGA monitor Summary: I don't know what part is to blame, but this is weird. Message-ID: <1189@kosman.UUCP> Date: 24 Jun 90 17:05:21 GMT Followup-To: alt.msdos.programmer Organization: K.O.'s Manor - Vital Computer Systems, Oxnard, CA 93035 Lines: 25 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.