Hacker News new | ask | show | jobs
by slabity 897 days ago
Did you ignore this part that came a bit before that?

> I decided to map the file into the address space instead of reading all of it. By doing this, we can just pretend that the entire file is already in memory and let the poor OS deal with fitting a 40 GB blob into virtual memory.

Why take a vaguely rhetorical statement and then complain it contradicts a more concretely accurate statement before it?

1 comments

> Did you ignore this part that came a bit before that?

No, just the opposite - I read that and that's exactly why I'm saying there was no need to read the whole thing into memory before starting to execute it.

> Why take a vaguely rhetorical statement and then complain it contradicts a more concretely accurate statement before it?

Because it's a contradiction in what they've written?

The article doesn't state the entire program has to be read into memory before it starts executing. Instead the article states that during execution, for the highest inputs, the entire program needs to pass through memory for execution to finish.