News for hackers. Stuff that matters.
Re:How fast can you allocate a large block of memory in C++? by scoutt on Thursday January 16, 2020 @05:48AM (#22063364)
> the system may then decide

This makes me think if the whole question is really about C++ or the OS implementation for memory allocations. This could have little to do with C++.

On a bare-metal system, malloc/sbrk (and thus new) can be something as simple as:

  uint32_t retptr = heap;
  heap += size;
  return retptr;

There are no comments on this comment yet.