Skip to Content
-1

Calling global methods is not much slower compared to calling local methods , What does it mean?

I am seeing the tips in the abap plataform, however in the performance tip and trick there is a section which says:

"Calling global methods is not much slower compared to
calling local methods"

however, I understand that Calling Global methods is a bit faster than calling local methods, but my teacher said the oposite.

So, what does it mean?

Thank you

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 30, 2018 at 09:25 AM

    ""Calling global methods is not much slower compared to calling local methods" Looking purely at the English semantics, this can mean:

    1. Local methods are slightly faster than global methods

    2. Local methods are slower than global methods

    3. Local methods are as fast as global methods

    As Sandra Rossi (and Horst Keller) says - there is no difference and it's not something to worry about.

    Add comment
    10|10000 characters needed characters exceeded

    • I understood you're not a native English speaker (I work with them every day!), that's why I explained how the text could be interpreted.

      As someone with 20 years experience of SAP and with really big database I can assure that local/global classes are never going to be the critical issue. Don't worry about it. Far more important is program design. Use local classes where appropriate, using global where appropraite.