[#28687] [Bug #2973] rb_bug - Segmentation fault - error.c:213 — rudolf gavlas <redmine@...>

Bug #2973: rb_bug - Segmentation fault - error.c:213

10 messages 2010/03/16

[#28735] [Bug #2982] Ruby tries to link with both openssl and readline — Lucas Nussbaum <redmine@...>

Bug #2982: Ruby tries to link with both openssl and readline

16 messages 2010/03/18

[#28736] [Bug #2983] Ruby (GPLv2 only) tries to link to with readline (now GPLv3) — Lucas Nussbaum <redmine@...>

Bug #2983: Ruby (GPLv2 only) tries to link to with readline (now GPLv3)

10 messages 2010/03/18

[#28907] [Bug #3000] Open SSL Segfaults — Christian Höltje <redmine@...>

Bug #3000: Open SSL Segfaults

19 messages 2010/03/23

[#28924] [Bug #3005] Ruby core dump - [BUG] rb_sys_fail() - errno == 0 — Sebastian YEPES <redmine@...>

Bug #3005: Ruby core dump - [BUG] rb_sys_fail() - errno == 0

10 messages 2010/03/24

[#28954] [Feature #3010] slow require gems in ruby 1.9.1 — Miao Jiang <redmine@...>

Feature #3010: slow require gems in ruby 1.9.1

15 messages 2010/03/24

[#29179] [Bug #3071] Convert rubygems and rdoc to use psych — Aaron Patterson <redmine@...>

Bug #3071: Convert rubygems and rdoc to use psych

10 messages 2010/03/31

[ruby-core:28728] Re: Indentifying key MRI-on-Windows issues

From: Charles Oliver Nutter <headius@...>
Date: 2010-03-18 05:51:57 UTC
List: ruby-core #28728
On Tue, Mar 16, 2010 at 10:30 AM, Roger Pack <rogerdpack2@gmail.com> wrote:
> Those patches speed up some reads by performing fewer realloc's, but
> aren't the "best" way. =C2=A0The best way, (on windows) would be to avoid
> realloc's if at all possible (or put them off until the very end).
> Then ruby would probably read pretty fast. =C2=A0Jruby probably doesn't u=
se
> realloc this way, and probably doesn't have the same speed problem.

JRuby does whatever the JVM does, and I know they've spent as much
time optimizing the JVM for Windows as they have for just about any
platform.

> Jruby doesn't do any 1.9 encoding support (that I'm aware), so again
> probably doesn't exhibit this, at least won't until they add encoding
> support and you run it in 1.9 mode, then it might.

JRuby does do encoding support, though it's not complete yet. I think
we just recently added the binmode stuff, but I'm not sure if it's
100% correct yet. Is there a benchmark we could run to see if we're
suffering from the same issues?

>> Are *nix systems able to IO optimize for this case while Windows systems=
 cannot? =C2=A0Is the reason this performance delta isn't seen in JRuby[1] =
is that the JVM's cross-platform IO handling always has to handle both case=
s and therefore can't fully optimize for one platform, i.e. - all pay the p=
rice?

JRuby doesn't actually use much of the JVM's builtin IO string/newline
handling, since the JVM does not provide a simple way to do both
buffered and unbuffered IO from the same stream (which we need for
Ruby's IO). Our IO subsystem is basically written to emulate how MRI
and libc do things, but entirely atop the JVM's NIO Channels, which
are roughly like direct file descriptors. So any line handling we do
we're doing ourselves, in Java.

- Charlie

In This Thread