-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
A-documentationArea: Adding or improving documentationArea: Adding or improving documentation
Description
Description
Currently the docs for box_collection state:
## Why is this bad?
Collections already keeps their contents in a separate area on the heap. So if you Box them, you just add another level of indirection without any benefit whatsoever.
However, there is one clear benefit: Box is one non-null pointer big instead of being 2-3 (or more!) pointers big. Particularly for error data, the extra layer of boxing to keep the error variant small outweighs the mild speed penalty.
Version
No response
Additional Labels
No response
lengyijun, abesto, Heliozoa, lukascobbler and peruginiandrea
Metadata
Metadata
Assignees
Labels
A-documentationArea: Adding or improving documentationArea: Adding or improving documentation