× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: How are CPU Speed and Overall CPW Related?
  • From: "Nathan M. Andelin" <nathanma@xxxxxxxxx>
  • Date: Fri, 4 May 2001 11:37:06 -0600

Hi Buck,
 
Good suggestion as far as coding technique.  But I just wanted to compare
CPU time.  Foxpro and Delphi don't have a VARYING string type.  They were
required to scan all 50 bytes in the string in order to Trim it.  The
VARYING type with INZ('TEST STRING') allows the RPG %TRIM() BIF to process
only the first 13 bytes (2 which contain the length, and 11 which contain
the text), and bypass scanning the remaining 39 bytes.  I wanted each
program to be as nearly identical as possible, in order to focus on CPU
performance.

Thanks,
 
 Nathan.
 
> ----- Original Message -----
> From: "Buck Calabro" <Buck.Calabro@commsoft.net>
> To: <MIDRANGE-L@midrange.com>
> Sent: Friday, May 04, 2001 9:59 AM
> Subject: RE: How are CPU Speed and Overall CPW Related?
> 
> 
> > >  Foxpro code on that old system, and it still beat
> > >  my RPG string handling program.
> >
> > I think my reply got lost in the shuffle so I'll try again.
> > Use VARYING on your "string" data types for good performance.
> >
> > Buck
> >
> 

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.