Re: Speeding up the ocnPrint() function



On Jun 1, 10:36 pm, Svenn Are Bjerkem <svenn.bjer...@xxxxxxxxxxxxxx>
wrote:
On Jun 1, 6:14 am, Stephen Greenwood <stephen.greenw...@xxxxxxxxx>
wrote:

I noticed thatocnPrint() is reasonably fast until the data gets above
a certain size. I don't know what that size is, but one does get a
warning if the printing exceeds 10000 points. To get around this, I
simply embedded theocnPrint() statement in a for() loop, printing 1%
of the points each time through the loop. The index of the loop is
used to control the ?from and ?to switches. Obviously the 1% is
arbitrary, and can be increased or decreased for smaller or larger
numbers of points, respectively.

Thanks for the input.

How much physical memory does your workstation have? I have always
been thinking that this is the reason for any skill list operation to
start swapping, which kills performance. MaybeocnPrintuses a list
operation that first expands the whole list, or wants to build the
whole list before printing to disk. We don't know, and will never
know, since we don't have the source code of it....
--
Svenn

Hi Svenn,

Sorry for the late reply. I don't check here too often. I think the
machine I was using at the time had 2GB physical memory, shared with
one other user. Sorry, I don't recall how much memory was being used
at the time. All I remember is that the CPU usage was pegged at ~100%.
Who knows what the limiting mechanism is; no source code, as you say.

Stephen Greenwood

.



Relevant Pages

  • Re: Speeding up the ocnPrint() function
    ... warning if the printing exceeds 10000 points. ... of the points each time through the loop. ... How much physical memory does your workstation have? ... Who knows what the limiting mechanism is; no source code, ...
    (comp.cad.cadence)
  • Re: Better report handling
    ... I need help on printing a report. ... I do a sequential search on the child file which has ... Do you have any ideas on why I can't retrieve all the associated child ...
    (comp.lang.clarion)
  • Re: Printing
    ... the printing into as one of the button driven options. ... and a structure and the first sub is Form1_Load which *does* show ... i.e. the first Sub called. ... and starts an infinite loop. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Speeding up the ocnPrint() function
    ... warning if the printing exceeds 10000 points. ... of the points each time through the loop. ... been thinking that this is the reason for any skill list operation to ... Maybe ocnPrint uses a list ...
    (comp.cad.cadence)
  • Re: FizzBuzz
    ... for me to read to directly add the pretty printing into the main loop ... trivial to add pretty printing to other versions. ... 4000 constant probe ... dup 1 = if cr else space then ...
    (comp.lang.forth)