I want to be able to save a big file in seconds. Currently I can save 1GB in 4.8 sec (see next code):
import time
chunk="a"*1024*1024*1024; # 1GB
t0=time.time();
open("test.txt", "w").write(chunk);
d=time.time()-t0;
print ("duration: %.2f s." % d);
duration: 4.80 s.
I am using a local disk Intel(R) Xeon(R) CPU E3-1505M v5, and RAM 64 GB. I get less than 209MB/sec of throughput.
How can I make 1GB in 1/sec or better!
Any suggestions are welcome. Thanks.