Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah. Automatically optimizing for space gives good cache footprint if you don't know anything about access patterns so it might as well be the default.

Also, with generics, there are cases where the optimal field ordering depends on the generic type parameters, so letting the compiler reorder fields on a per-generic-instance basis gives better space utilization than any given source field ordering.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: