|
Ultimately, all these code, irrespective of being written in any language, will be compiled into machine code. So, the machine code that a CPU will understand and execute faster; will be faster. Am I right?
Possibly, the OP should understand, how each of his code, A and B, would take up CPU time, and then identify which of his code is better in terms of speed!
|