On Sun, Nov 23, 2008 at 12:39 AM, Roger Pack <rogerpack2005 at gmail.com>
wrote:> appears you can somewhat avoid the ''irb 100% cpu''
> by changing lib\irb\input-method.rb
>
> from
> def gets
> if l = readline(@prompt, false)
> ...
> to
> def gets
> print @prompt
> if l = $stdin.gets
> ...
>
Doing that you loose the readline autocompletion functionality
> Which at least doesn''t use 100% cpu :)
> Wonder if any other libraries have found this weirdness with readline
> + mingw...and why it doesn''t happen sometimes. Odd. msvcrt
versioning
> weirdness?
No, is GNU Readline issue and linking to a different version of
readline. Going to 4.2 instead of 5 version doesn''t produce that CPU
usage.
FYI.
--
Luis Lavena
AREA 17
-
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
Douglas Adams