homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ialbert
Recipients ialbert
Date 2008年12月06日.15:10:58
SpamBayes Score 1.3477724e-09
Marked as misclassified No
Message-id <1228576260.5.0.752040739396.issue4565@psf.upfronthosting.co.za>
In-reply-to
Content
The write performance into text files is substantially slower (5x-8x)
than that of python 2.5. This makes python 3.0 unsuited to any
application that needs to write larger amounts of data.
------------test code follows -----------------------
import time
lo, hi, step = 10**5, 10**6, 10**5
# writes increasingly more lines to a file
for N in range(lo, hi, step):
 fp = open('foodata.txt', 'wt')
 start = time.time()
 for i in range( N ):
 fp.write( '%s\n' % i)
 fp.close()
 stop = time.time()
 print ( "%s\t%s" % (N, stop-start) )
History
Date User Action Args
2008年12月06日 15:11:00ialbertsetrecipients: + ialbert
2008年12月06日 15:11:00ialbertsetmessageid: <1228576260.5.0.752040739396.issue4565@psf.upfronthosting.co.za>
2008年12月06日 15:10:59ialbertlinkissue4565 messages
2008年12月06日 15:10:58ialbertcreate

AltStyle によって変換されたページ (->オリジナル) /