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.

Changes between Version 13 and Version 14 of iMeshComponent


Ignore:
Timestamp:
02/18/09 14:44:13 (14 years ago)
Author:
billings
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • iMeshComponent

    v13 v14  
    1515There 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: 
    1616 
    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.  
    1818[[BR]] 
    1919* Outgoing arrays can always be "borrowed," so long as the memory doesn't magically disappear.