Is @ syntax faster than $ in parameter fields?

   2364   4   1
User Avatar
Member
5107 posts
Joined: 2月 2012
オフライン
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] https://lnk.bio/animatrix [lnk.bio]
User Avatar
Member
680 posts
Joined: 11月 2013
オフライン
I tested using Attribute Create Sop, @ is little slower than $.
User Avatar
Member
1743 posts
Joined: 3月 2012
オフライン
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
5107 posts
Joined: 2月 2012
オフライン
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] https://lnk.bio/animatrix [lnk.bio]
User Avatar
Member
680 posts
Joined: 11月 2013
オフライン
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