Does preprocessing makes our code faster? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Does preprocessing makes our code faster?

let us assume that we have two code 1). #include<bits/stdc++.h> #define M 32 #define fun() ........... // suppose we define it . int main() { call that function 1000 times; } 2). #include<bits/stdc++.h> void function() { //definition } int main() { call that function 1000 times; } so which one is faster 1 or 2

27th Jun 2020, 3:52 PM
Abhishek Dimri
Abhishek Dimri - avatar
1 Answer
+ 4
It doesn't matter. Because, as the name suggests preprocessing happens before the execution of the code. Thus doesn't affect the execution time.
27th Jun 2020, 3:59 PM
Arsenic
Arsenic - avatar