Menu

1 / 7

6IT

Hacker News·5 months ago
#4SxtMZQn
#6it#cycles#memory#branch#usually
Reading 0:00
15s threshold

This is a DRAFT of the first part of Chapter 4 - On CPU Physics and CPU Cycles, of the Vol.1 of an upcoming book " Efficient C++ Programming for Modern 64-bit CPUs" by Sherry Ignatchenko and Dmytro Ivanchykhin. Feel free to comment on it - especially if you see some factual inconsistencies, we'll be happy to fix them.

Another benefit of striving for efficiency is that

the process forces you to understand the problem in more depth

— Alex Stepanov, author of the original STL

Now, let’s get down to some specifics. Let’s see Fig. 1 for a diagram of a “representative” motherboard, which has a “representative” CPU chip, which in turn has a “representative” CPU core.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.