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
Post a Comment