I have seen many threads revolving a similar idea
So to measure how expensive something is can be done by figuring out how much Memory does something takes (that’s how I understand it)
So a Boolean probably takes 1 Bit for example
My question is "How can one measure the amount of memory consumed by one’s code?"
Readability is my number 1 priority, so don’t worry about unreadable code I hate those.
Never sacrifice readability for performance.
Would also be nice if we can also measure the amount of memory consumed by Instances
I have also found DataCost which can be used to measure how much Data does something cost for Data Persistence however they are both deprecated
I don’t know if it can be used for accurately measuring how Expensive an Instance is