News for hackers. Stuff that matters.
Re:Handles Are the Better Pointers (2018) by OnACoffeeBreak on Thursday August 13, 2020 @08:40AM (#24142721)
What about CPU data cache misses due to the fact that malloc doesn't have a concept for how best to organize that data chunk of data based on your application's specific usage pattern?
Re:Handles Are the Better Pointers (2018) by batty_alex on Thursday August 13, 2020 @09:12AM (#24142974)
That can definitely be a problem. Using handles makes it easier to swap out your allocation mechanism if you ever have to optimize your cache efficiency.

Hell, projects that need to squeeze out that level of performance will typically have multiple different memory allocation mechanisms.

Re:Handles Are the Better Pointers (2018) by rightbyte on Thursday August 13, 2020 @09:21AM (#24143040)
Ye well then you'll need something fancy. The size saving is there though.