Comment

Comment by chrisseaton

What do you think an allocation involves in a modern language implementation?

It's about five machine instructions amortised.

Load the allocation pointer, add the object size to it, check it's not got too large, store it.

Deallocation though - yes that's slow!

parent chrisseaton 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton