I searched on "polymorphic" and did not find this idea posted.
I just learned over here that when you use a polymorphic VI, all flavors of that VI load into memory! That's why a VI hierarchy gets so cluttered so fast when you use them.
In the object-oriented version of polymorphism, all possible polymorphic cases need to be coded and loaded into memory, since any of these possible cases could be called depending on the execution of the program. In the LabVIEW-specific version of polymorphism, where a function has many flavors, perhaps due to a change in data type on one of the inputs, it is not usually the case that all of the different polymorphic members can execute at run time. In fact, I believe it is usually the case that only ONE of the cases will ever be called or execute.
So, why are all of the other polymorphic members in memory? I don't know. I think they shouldn't be. They seem to be eating RAM for no good purpose.
Load only the specifically called version of a polymorphic VI into memory.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has received less than 8 kudos within 8 years after posting will be automatically declined.