performance - Is doing this: var[property] more resource intensive than var.property? -


i'm refactor long algorithm can adapted property instead of fixed one.

so, instead of having var.x have var[property], property can x, y, alpha, etc.

but, question appeared, performance wise, present impact?.

thanks!

in relative terms yes it's slower, whether matters depends on deep specifics of application , usage patterns.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -