× 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.



I have a 170 with 460 cpw.  But that should not matter, all the results are
relative to the same system.  Bin to bin is 15% faster than int to int.  Add
to bin is off the charts, 20x slower than add to int.

I would like to know if the rpg definition of "Binary" is unique to it and
if it predates the s/38.   And was the as400 database handling of binary
something forced on it by RPG?

-Steve

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of cozzi@xxxxxxxxx
Sent: Monday, February 09, 2004 12:33 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: int vs binary questions


   Gosh I hope those are resource related performance results and not true
   results. If that is true, then IBM implemented INT variables in RPG
poorly
   and should fix it and PTF it back to V1R1.

   Bob Cozzi



     -------- Original Message --------
     Subject: int vs binary questions
     From: "Steve Richter" <srichter@xxxxxxxxxxxxx>
     Date: Mon, February 09, 2004 9:11 am
     To: "Chat. Rpg400-L" <rpg400-l@xxxxxxxxxxxx>

     is there a dds equivalent to "10i 0"?

     I ran a timing loop that copied between 10i 0 and 9b 0 variables. here
     are
     the results:
      bin to bin was the fastest.
      int to int was 10% slower than bin to bin.
      bin to int took twice as long as bin to bin.

     any idea why bin to bin runs faster than int to int?

     The practical side of this is that I have gotten into the practice of
     declaring all integer type variables as 10i 0. But when I have to store
     such
     a field in a database file, I dont know the best way to declare the
     database
     field.

     -Steve

     _______________________________________________
     This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
     list
     To post a message email: RPG400-L@xxxxxxxxxxxx
     To subscribe, unsubscribe, or change list options,
     visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
     or email: RPG400-L-request@xxxxxxxxxxxx
     Before posting, please take a moment to review the archives
     at http://archive.midrange.com/rpg400-l.
_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.