Is @ syntax faster than $ in parameter fields?

   1731   4   1
User Avatar
Member
4523 posts
Joined: Feb. 2012
Online
I assume @ syntax is not multi-threaded regardless of looking like Wrangle VEX code?

Is one faster than the other or is it just for unification?

Is it also backwards compatible with pre-H15 releases?



Cheers,
pusat
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
623 posts
Joined: Nov. 2013
Offline
I tested using Attribute Create Sop, @ is little slower than $.
User Avatar
Member
1743 posts
Joined: March 2012
Offline
jerry7
I tested using Attribute Create Sop, @ is little slower than $.
Could you be more specific about what you tested, in case there's an issue? I'm mildly skeptical, but there might be something unforseen at play.

Is it also backwards compatible with pre-H15 releases?
The @ syntax for local variables is only in H15.

I assume @ syntax is not multi-threaded regardless of looking like Wrangle VEX code?
Local variable expressions cannot be multi-threaded. There's currently a single “current point”, “current primitive”, and “current vertex” variable for SOP expression evaluation, so there can't be expression evaluations for multiple elements at the same time.
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
User Avatar
Member
4523 posts
Joined: Feb. 2012
Online
Thanks guys.

ndickson
Is it also backwards compatible with pre-H15 releases?
The @ syntax for local variables is only in H15.

I assume @ syntax is not multi-threaded regardless of looking like Wrangle VEX code?
Local variable expressions cannot be multi-threaded. There's currently a single “current point”, “current primitive”, and “current vertex” variable for SOP expression evaluation, so there can't be expression evaluations for multiple elements at the same time.

That was my guess as well, it makes things nicer so I am all for using it.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
623 posts
Joined: Nov. 2013
Offline
ndickson
Could you be more specific about what you tested, in case there's an issue? I'm mildly skeptical, but there might be something unforseen at play.


only a little different

Attachments:
speed.hipnc (59.6 KB)

  • Quick Links