What impacts the performance more, several if statements or a print?
I’m making a program which iterates through a lot of jobs and prints their traces (error, warn, info logs). It is quite time consuming so I’m concerned on performance. I have the next code:
What impacts the performance more, several if statements or a print?
I’m making a program which iterates through a lot of jobs and prints their traces (error, warn, info logs). It is quite time consuming so I’m concerned on performance. I have the next code: