Is there a performance penalty for setting an attribute/property with the same value?

Hello
When setting an attribute or property of an instance with the same value, will this impact negatively the performance?
I feel that if I start putting verifications whether the attribute/property has the same value before setting it, this will make my code less readable…

The specific question is related to a TextLabel inside BillboardGui, but I would like to know also for the general case.

Thanks

1 Like

its probably not even changed in the first place

As mentioned above, any value set to the exact same value will not cause .Changed events to fire, because the value is not getting changed. I assume it’s an optimization the engine has.