Jump to content

In place in/out element


Recommended Posts

Posted

Just curious, is there any fundamental difference between using the in/out element in an in place element structure versus just using the generic node you get when crossing boundaries (I just realized I don't know if there is an official name for this node).  

 

post-15770-0-06506400-1395676916.png

Posted

Anymore, I doubt it.  When the In Place Element Structure was first made, it would tell the compiler to do things in place (no data copies).  I believe the compiler has gotten a lot smarter since, so there likely isn't any difference anymore.

Posted

Careful.

 

I've had cases where I want my code to be portable and have had serious issues with "smart" compilers on Real-Time systems.  I ended going back and putting in a load of IPEs to get my performance back.

 

Not all of NIs compilers for different targets are created equal.  Just because it works like a dream on one target, doesn't mean it'll do the same on all.

Posted
Speaking of in place structures, is there much point cascading them (top) or is all data inside an in place structure automatically acted upon in place (bottom)?

 

As drawn, there is not much point of doing the upper version.  No need to do a meaningless index operation and incur the small but measurable performance hit of the IPES to do a simple replace.  If I am actually going to perform an index+do something+replace operation then I prefer the IPES.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.