3 ms·
This is like going back to malloc and free but using array indices rather than pointers, and each type has a fixed-size heap. We did it in one Microsoft service
by erik_seaberg 3y ago
This is like going back to malloc and free but using array indices rather than pointers, and each type has a fixed-size heap. We did it in one Microsoft service because the very first .NET releases had slow GCs.
- Karellen 3y agoOne could argue that pointers are just array indices, where the array is your whole address space, and you only get the one array for all your types.
- erik_seaberg 3y agoIt helps that pointer-to-T is a distinct type, where (apart from Ada) index-into-array-of-T is just like any other integer.