B
B
beduin012019-02-11 17:12:41
Programming
beduin01, 2019-02-11 17:12:41

Does print really slow down program execution?

To what extent do various options for print'a data on the screen slow down the execution of the program? Is it possible to freeze it somehow?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mefutu, 2019-02-11
@mefutu

It will slow down, but it will become noticeable only if you have 'long' operations or millions of 'fast' operations. Any output to the screen / zhd / other media, by definition, is not instantaneous.

V
Vasily Melnikov, 2019-02-11
@BacCM

If we abstract from programming languages, the problem being solved, and everything else, then it will be, moreover, very strongly.
And you need to look at the specifics.
There are profilers for measuring.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question