阅读背景:

写入大文件的最快方法

来源:互联网 

I have a script thats writes a series of numbers on a line millions of times. What's the fastest way for ruby to write to a file like that? Right now I'm calculating that it will take me about 21 hours to write 258 million lines to this file. It's also going to be roughly 8-15gigs. any suggestions ?I have a script thats writes a series of number




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: