News for hackers. Stuff that matters.
Re:How fast can you allocate a large block of memory in C++? by paulsutter on Wednesday January 15, 2020 @10:54PM (#22061550)
Any C++ programmer could write code that “allocates” 500MB in a few instructions if the pages already exist.

If the pages don’t already exist (as indicated by the given timings), this is a test of the OS and has little to do with the language.

It’s a poorly posed question. C++ runs on many environments.

There are no comments on this comment yet.