Why can a computer take minutes to run a couple lines of code, yet can run complex things like games so quickly?

743 views

Why can a computer take minutes to run a couple lines of code, yet can run complex things like games so quickly?

In: Technology

10 Answers

Anonymous 0 Comments

Could you give some examples of a “couple lines of code” that takes minutes?

Because either you’re referring to a loop, like /u/Schnutzel refers to below, or the code is itself just a call into some much much more complicated code which is much longer than a couple lines.

You are viewing 1 out of 10 answers, click here to view all answers.