3 ms·
Really? I'm surprised you mention memory is even a consideration, never even heard it raised as far as typing choices are concerned.
by throw156754228 2y ago
Really? I'm surprised you mention memory is even a consideration, never even heard it raised as far as typing choices are concerned.
- beeboobaa3 2y ago(More than) doubling the memory required for all of your integers would be silly. You could use `{userId: 12345}` everywhere, or you can use a branded type and it's just `12345` at runtime.