# Impact of calling structure on performance

**URL:** <https://techcommunity.softwareag.com/t/impact-of-calling-structure-on-performance/60133>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [August 31, 2005, 7:12pm UTC](https://techcommunity.softwareag.com/t/impact-of-calling-structure-on-performance/60133 "2005-08-31T19:12:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rberg](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@rberg](https://techcommunity.softwareag.com/u/rberg)\
**Post date:** [August 31, 2005, 7:12pm UTC](https://techcommunity.softwareag.com/t/impact-of-calling-structure-on-performance/60133/1 "2005-08-31T19:12:22Z")

</div>

I heard there is a difference in performance between the several ways of calling a subprogram.

Which is the one that has the best performance and why ?

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [September 4, 2005, 2:57am UTC](https://techcommunity.softwareag.com/t/impact-of-calling-structure-on-performance/60133/2 "2005-09-04T02:57:42Z")

</div>

There is only one way to invoke a subprogram, namely a CALLNAT. Are you interested in things like cost of transferring data (PDA (direct and BY VALUE), Stack, etc)?

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [September 4, 2005, 2:58am UTC](https://techcommunity.softwareag.com/t/impact-of-calling-structure-on-performance/60133/3 "2005-09-04T02:58:10Z")

</div>

There is only one way to invoke a subprogram, namely a CALLNAT. Are you interested in things like cost of transferring data (PDA (direct and BY VALUE), Stack, etc)?

---

<div class="post-metadata">

**Author:** ![rberg](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@rberg](https://techcommunity.softwareag.com/u/rberg)\
**Post date:** [September 5, 2005, 11:53am UTC](https://techcommunity.softwareag.com/t/impact-of-calling-structure-on-performance/60133/4 "2005-09-05T11:53:24Z")

</div>

Yes, I would like that. Also, if possible, if it would be better to include the code within the program as subroutine io subprogram.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:40pm UTC](https://techcommunity.softwareag.com/t/impact-of-calling-structure-on-performance/60133/5 "2021-04-02T14:40:15Z")

</div>


