in reply to Is it wrong?

The instructor is an idiot. A programmer should always keep in mind how much memory and CPU time their code is going to use -- an eighteen wheeler is not required to move a carton of milk home from the corner store.

Would this instructor read a 40G log file into memory before processing it? I sure hope not. Unless, of course, s/he was being facetious.

--t. alex
Life is short: get busy!