print statements and profiling a function slowed performance
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Thu Jun 26 22:55:32 EDT 2014
On Thu, 26 Jun 2014 13:37:41 -0700, CM wrote:
> On Thursday, June 26, 2014 3:27:48 PM UTC-4, Mark Lawrence wrote:
>
>> 3. use the logging module :)
>
> I've just never got around to it, but I guess I should. Thanks for the
> nudge.
While using the logging module is recommended for logging, if you expect
that logging will be faster than print, I expect you will be disappointed.
--
Steven
More information about the Python-list
mailing list