4 ms·
> Sometimes you want a computed property and you use non-trivial getter Then pre-compute it, make it immutable, and expose the variable. And if that ends up be
by logn 11y ago
> Sometimes you want a computed property and you use non-trivial getter
Then pre-compute it, make it immutable, and expose the variable. And if that ends up being too hard it's probably because you need a builder and/or to group your properties into smaller classes.
- barrkel 11y agoPrecomputing properties on a hundred million object instances is not cheap.