Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #4374
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!talisker.lacave.net!lacave.net!not-for-mail |
|---|---|
| From | "Yoann M." <yoann6@gmail.com> |
| Newsgroups | comp.lang.ruby |
| Subject | Re: Optimize write of large file |
| Date | Thu, 12 May 2011 10:07:30 -0500 |
| Organization | Service de news de lacave.net |
| Lines | 20 |
| Message-ID | <c43cd613ab24e8cf05e03bc756926032@ruby-forum.com> (permalink) |
| References | <f93da777afad73da30f77526cdcab9ee@ruby-forum.com> |
| NNTP-Posting-Host | bristol.highgroove.com |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | talisker.lacave.net 1305213420 72171 65.111.164.187 (12 May 2011 15:17:00 GMT) |
| X-Complaints-To | abuse@lacave.net |
| NNTP-Posting-Date | Thu, 12 May 2011 15:17:00 +0000 (UTC) |
| In-Reply-To | <f93da777afad73da30f77526cdcab9ee@ruby-forum.com> |
| X-Received-From | This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway |
| X-Mail-Count | 383080 |
| X-Ml-Name | ruby-talk |
| X-Rubymirror | Yes |
| X-Ruby-Talk | <c43cd613ab24e8cf05e03bc756926032@ruby-forum.com> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.ruby:4374 |
Show key headers only | View raw
You're right, doing the buffer myself does not make it faster. For writing 10 millions lines, with an array of strings, one string, and no homemade-buffer (code is attached) : Buffer array : 11.141s Buffer string : 9.748s No buffer : 10.344s Don't you think using more RAM before writing on disk could make the process faster ? I thought so, then I'd like to say to File how much RAM it can uses to speed things up, because I can use a lot of RAM. Regards Attachments: http://www.ruby-forum.com/attachment/6191/test_write.rb -- Posted via http://www.ruby-forum.com/.
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Optimize write of large file "Yoann M." <yoann6@gmail.com> - 2011-05-12 07:58 -0500
Re: Optimize write of large file Markus Schirp <mbj@seonic.net> - 2011-05-12 08:17 -0500
Re: Optimize write of large file Jeremy Bopp <jeremy@bopp.net> - 2011-05-12 09:19 -0500
Re: Optimize write of large file "Yoann M." <yoann6@gmail.com> - 2011-05-12 10:07 -0500
Re: Optimize write of large file Robert Klemme <shortcutter@googlemail.com> - 2011-05-12 10:25 -0500
Re: Optimize write of large file Markus Schirp <mbj@seonic.net> - 2011-05-12 10:51 -0500
Re: Optimize write of large file "Yoann M." <yoann6@gmail.com> - 2011-05-13 02:21 -0500
csiph-web