The first technique is widely used.1
The second technique has trade-offs.2
Both approaches have merit.