@with_open_mode('w')
@with_sizes('large')
def write_large_chunks(f, source):
 for i in xrange(0, len(source), 1000000):
  f.write(source[i:(i + 1000000)])

@ with_open_mode ( 'w' ) @ with_sizes ( 'large' ) def write_large_chunks ( f , source ) : for i in xrange ( 0 , len ( source ) , 1000000 ) : f . write ( source [ i : ( i + 1000000 ) ] )
write 1e6 units at a time .