3 ms·
I'd normalize on instantiation. It is both a performance win, smaller code, and much simplier. Chanel names don't change so you dont have to keep them in sync i
by jnordwick 10y ago
I'd normalize on instantiation. It is both a performance win, smaller code, and much simplier. Chanel names don't change so you dont have to keep them in sync in any real sense, and if they do, the setter has a very trival job of setting both the real and normalized name.
- unscaled 10y agoThe nice thing with wrapping it in an abstraction, is that you can change or add optimizations without having to change the code EVERYWHERE.