Warning:
Can't synchronize with repository "(default)" (/disks/svn_mcs/repos/neams-ibm does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
02/18/09 14:44:13 (14 years ago)
- Author:
-
billings
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v13
|
v14
|
|
15 | 15 | There are some important memory considerations when wrapping a library with SIDL. In particular, SIDL defines its own array type and the efficient transfer of information to and from this type must be considered to avoid a performance hit. In this component, the following "tricks" are used: |
16 | 16 | |
17 | | * Copying incoming arrays can be avoided if the stride of the array is equal to one. |
| 17 | * Copying incoming arrays can be avoided if the stride of the SIDL array is equal to one. If this is true, then it is sufficient to pass the address of the first element. |
18 | 18 | [[BR]] |
19 | 19 | * Outgoing arrays can always be "borrowed," so long as the memory doesn't magically disappear. |