print statements and profiling a function slowed performance
Mark Lawrence
breamoreboy at yahoo.co.uk
Fri Jun 27 21:06:19 EDT 2014
On 28/06/2014 01:12, Skip Montanaro wrote:
> On Fri, Jun 27, 2014 at 4:35 PM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
>> That's got to count for
>> something, compared to a raw print that has to wait for the I/O to
>> finish.
>
> A raw print basically just tosses some bytes in a stdio buffer (at
> least in Unix-land).
>
Exactly, in Windows land you're talking chalk and cheese when comparing
logging to printing to a command window.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
More information about the Python-list
mailing list