cancel
Showing results for 
Search instead for 
Did you mean: 

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

10-27-2018 5:09 AM
zerghector Explorer
1311 views 5 comments
0 Likes
SAP Managed Tags
Subscribe

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

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

matt
Active Contributor
0 Likes

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

zerghector
Explorer

It worrying because if you have to work with a really big database and you must use a method to work with that, it might have a big impact using one or another, so that is why I ask,

What is more, is in the "Tip and tricks" section, so I do think it is important because nobody uses it.

However Thanks for your response, I am Spanish native , so English is dificult to me.

Thank you

matt
Active Contributor
0 Likes

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.