Yes, writing to a file is one of the slower things you can do. So if that's in a performance-critical loop it will very much slow things down. But that would be true for Python and PyPy as well. Are you doing the same thing in that code?
> On Mar 25, 2015, at 4:00 AM, Michael Bullman <[email protected]> > wrote: > > Hi Guys, > > So I just went back through my code. I didn't see any global variables. I'm > going to try and start using the @time macro tomorrow to try and identify the > worse functions. Would writes to file significantly impact speed? I know > looking on google writing to files is frowned upon, but what is a better > alternative? Hold everything in an Array until the program finishes then > write out at the end? Are data bases a viable option when output is very > large? Or when records need to be kept? > > I'm also going over the code again and might post a copy if people are > interested, but I'm not going to be doing that tonight. > > Thanks again
