Damian Steer wrote:
-----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?

It seems good. Works for me. =)

--
Ola Bini (http://ola-bini.blogspot.com) JRuby Core Developer
Developer, ThoughtWorks Studios (http://studios.thoughtworks.com)

"Yields falsehood when quined" yields falsehood when quined.



---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to