-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Alexey Verkhovsky wrote: > I've poked around logging a bit, and here is what I discovered. > > Writing to a File instance in JRuby is actually not too bad, until you > set sync = true on that instance. With that, MRI writes 7 times slower > (which is still fast enough), but JRuby does it 1000 times slower.
I noticed that the other day when someone mentioned log issues on irc. Great minds ;-) Looking at <http://www.ruby-doc.org/core/classes/IO.html#M002287> I think I've got sync wrong. I assumed it was fsync, but it just means don't buffer writes. Commenting out channel.force(false) in IOHandlerSeekable#sync feels correct, and speeds up writes enormously. Does that look right? Damian - -- Hewlett-Packard Limited registered Office: Cain Road, Bracknell, Berks RG12 1HN Registered No: 690597 England -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG8joYAyLCB+mTtykRAgMeAJwMBSJFQZEyn2uQTTy9oMr79MTctQCg3tcX ZSWe/KQ07ygePazyec3AuX8= =NKT1 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
