Thanks @matklad, I’ll be adopting this TigerBeetle convention:
3-byte items? What an abomination!
Just want to add the caveat that count is often used when traversing the collection, counting the elements. So is not a trivial operation. But if it is trivially known, usually as a field, then len/length is used instead.
count
len
length
3-byte items? What an abomination!
– matkladJust want to add the caveat that
– vulpesxcountis often used when traversing the collection, counting the elements. So is not a trivial operation. But if it is trivially known, usually as a field, thenlen/lengthis used instead.