Re: How to determine if printing is being a bottleneck in my code?

2012-12-04 Thread rusi
On Dec 5, 7:36 am, Roy Smith wrote: > In article <29c74a30-f017-44b5-8a3d-a3c0d6592...@googlegroups.com>, > > > > > > > > > >  SherjilOzair wrote: > > Hello list, > > > When it comes to printing things while some computation is being done, there > > are 2 extremes. > > > 1. printing speed is slow

Re: How to determine if printing is being a bottleneck in my code?

2012-12-04 Thread Roy Smith
In article <29c74a30-f017-44b5-8a3d-a3c0d6592...@googlegroups.com>, SherjilOzair wrote: > Hello list, > > When it comes to printing things while some computation is being done, there > are 2 extremes. > > 1. printing speed is slower than data-to-print generation speed. In this > case, printi

How to determine if printing is being a bottleneck in my code?

2012-12-04 Thread SherjilOzair
Hello list, When it comes to printing things while some computation is being done, there are 2 extremes. 1. printing speed is slower than data-to-print generation speed. In this case, printing is a bottleneck. Examples: "for i in xrange(2**30): print i". Without the print, this code would be m