ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

performance rpg vs rpgle

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • performance rpg vs rpgle

    hi; Can some one tell me if exist Difference in performance between RPG and RPGLE, if the two pgms(rpg and rpgle) do it the same?

    Thanks.
    J.Aguilera

  • #2
    Re: performance rpg vs rpgle

    There should be no performance difference... of course this is all relative to what program you are describing. But the same logic should pretty much boil down to the same machine level code and therefore be relatively equivalent. In fact, I'm guessing there are better optimizations for RPGLE code than RPG. Then again, you need to give more detail because the LE in RPGLE implies you are using service programs... is that true in this question?
    Your future President
    Bryce

    ---------------------------------------------
    http://www.bravobryce.com

    Comment


    • #3
      Re: performance rpg vs rpgle

      RPGLE should be slightly faster (at least on sub-sequent calls)! When using RPGIII and leaving the program with *INLR = *ON, the program is removed from memory. The next time the program is called the complete opening process (allocating storage for the variables, opening the files etc) must be executed. RPGIV programs on the other side are not removed from memory until the activation group in which they are executed is reclaimed even though the program is ended with *INLR=*ON. To reclaim the a named activation group the CL command RCLACTGRP must be explicitly executed. Programs running in a new activation group (each time the program gets called the complete open process must be performed) can be compared with RPGIII programs. ILE Programs running in the Deault Activation Group cannot be removed from memory, because the default activation group can neither be closed with RCLACTGRP nor RCLRSC but only when the job ends.

      For all subsequent calls (in the same activation group) only the already allocated storage gets reinitialized.

      When using ILE techniques, i.e. calling procedures located in modules or service program, the first activation might be slower, because the service programs must also be resolved and moved into memory, but then calling a procedure (in a service program) is almost as fast as calling a subroutine.

      In either way: Forget about RPGIII it is an outdated technology.
      The successor is RPGIV (sometimes also refered as ILE RPG, even though ILE is rather a concept than a language), which is available since almost 20 years now.

      Birgitta
      Last edited by B.Hauser; August 16, 2012, 11:42 PM.

      Comment


      • #4
        Re: performance rpg vs rpgle

        How about in regards to the maintenance of the code and its all about the maintenance of some crappy code from 3+ years and the DB is gone.

        When I see RPG III code I first have to find some kittens that I want to punch (i said want to , not actually do). Then after driving around town for 30 minutes and start looking at the code, I am sad to see so many Gotos and cebEq and will someone buy a dam subroutine that has a meaning full name. Also the nesting that is a bother to read.

        Now what makes the new rpg faster?
        LongFieldNames
        SubProcudures / ILE
        SQL
        Running Java
        /free
        /free
        /free
        cleaner nesting
        better DS (is the overlay allowed in III?)
        its now 2012
        Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

        Comment


        • #5
          Re: performance rpg vs rpgle

          Originally posted by DeadManWalks View Post
          better DS (is the overlay allowed in III?)
          its now 2012
          you could overlay by using from/to positions in any DS but there was no overlay keyword, etc. but 500 years ago when i programmed RPG III i had to use DS all the time
          I'm not anti-social, I just don't like people -Tommy Holden

          Comment


          • #6
            Re: performance rpg vs rpgle

            I'm so glad that I'm so young I've never had to program in RPGIII
            Your future President
            Bryce

            ---------------------------------------------
            http://www.bravobryce.com

            Comment


            • #7
              Re: performance rpg vs rpgle

              Originally posted by bryce4president View Post
              I'm so glad that I'm so young I've never had to program in RPGIII
              Or even worse RPGII!
              But I need to admit, a well structured RPGIII program is far better than a badly structured ILE Program or a badly structured program written in an OO language.
              Nevertheless I don't want to go back anymore!
              A few years ago I had to write a couple of programs for a customer. He first insisted in RPGIII, but finally I could convince him to use RPGLE (but without free format, ILE concepts and the worst thing at all NO embedded SQL). It was a real pain.

              Birgitta

              Comment


              • #8
                Re: performance rpg vs rpgle

                Originally posted by B.Hauser View Post
                Or even worse RPGII!
                But I need to admit, a well structured RPGIII program is far better than a badly structured ILE Program or a badly structured program written in an OO language.
                Nevertheless I don't want to go back anymore!
                A few years ago I had to write a couple of programs for a customer. He first insisted in RPGIII, but finally I could convince him to use RPGLE (but without free format, ILE concepts and the worst thing at all NO embedded SQL). It was a real pain.

                Birgitta
                As Bryce said a couple of times ... " I think I just vomited in my mouth a little."
                Regards

                Kit
                http://www.ecofitonline.com
                DeskfIT - ChangefIT - XrefIT
                ___________________________________
                There are only 3 kinds of people -
                Those that can count and those that can't.

                Comment


                • #9
                  Re: performance rpg vs rpgle

                  Oh the joys of RPGII and RPGIII!

                  I am fortunate that i get to deal with them both regularly... JBA System21 V3.52.

                  No laughing...

                  Comment


                  • #10
                    Re: performance rpg vs rpgle

                    RPGII & III here... plus the messiest ILE I've ever seen interspersed...

                    Matching Records anyone?

                    ... anyone? ...

                    No? ok...I'll go back to my corner...

                    Comment


                    • #11
                      Re: performance rpg vs rpgle

                      Originally posted by kitvb1 View Post
                      As Bryce said a couple of times ... " I think I just vomited in my mouth a little."
                      ***BURP!***

                      Here we go again...

                      haha.
                      Your future President
                      Bryce

                      ---------------------------------------------
                      http://www.bravobryce.com

                      Comment

                      Working...
                      X