How do different ways of nesting affect how quickly the code runs? (vs. being easily readable?) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do different ways of nesting affect how quickly the code runs? (vs. being easily readable?)

Runtime vs. Readability

17th Dec 2018, 2:11 PM
G.G.Ashbrook
G.G.Ashbrook - avatar
2 Answers
+ 2
Depends on the language. Compiled languages generate machine or pseudo machine code so whitespace has no impact on running just compiling. Interpreted languages tokenize during running so it has a minor effect on running the first time the code is seen.
18th Dec 2018, 5:57 AM
John Wells
John Wells - avatar
0
18th Dec 2018, 7:13 AM
Codebeast**
Codebeast** - avatar