[#82311] [Ruby trunk Bug#13794] Infinite loop of sched_yield — charlie@...
Issue #13794 has been reported by catphish (Charlie Smurthwaite).
4 messages
2017/08/09
[#82518] [Ruby trunk Feature#13618] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — mame@...
Issue #13618 has been updated by mame (Yusuke Endoh).
5 messages
2017/08/30
[#82552] Re: [Ruby trunk Feature#13618] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
— Eric Wong <normalperson@...>
2017/08/31
mame@ruby-lang.org wrote:
[#82756] Re: [Ruby trunk Feature#13618] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
— Eric Wrong <normalperson@...>
2017/09/12
Eric Wrong <normalperson@yhbt.net> wrote:
[ruby-core:82496] Re: [ruby-cvs:66849] glass:r59671 (trunk): lib/csv.rb: refactor and optimize. This change
From:
Masaki Matsushita <glass.saga@...>
Date:
2017-08-29 01:55:08 UTC
List:
ruby-core #82496
> Is a keyword hash faster than a keyword argument?
The change in those lines is to pass option[:encoding] to self.new.
I might have to split this to another commit.
2017-08-28 22:20 GMT+09:00 Nobuyoshi Nakada <nobu@ruby-lang.org>:
> On 2017/08/28 16:54, glass@ruby-lang.org wrote:> glass 2017-08-28
> 16:54:00 +0900 (Mon, 28 Aug 2017)
>>
>> New Revision: 59671
>>
>> https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59671
>>
>> Log:
>> lib/csv.rb: refactor and optimize. This change
>> includes the patch from marshall-lee.
>> close #1168
> Is a keyword hash faster than a keyword argument?
>
> @@ -1188,11 +1189,11 @@
> # The <tt>:row_sep</tt> +option+ defaults to <tt>$INPUT_RECORD_SEPARATOR</tt>
> # (<tt>$/</tt>) when calling this method.
> #
> - def self.generate_line(row, encoding: nil, **options)
> + def self.generate_line(row, **options)
> options = {row_sep: $INPUT_RECORD_SEPARATOR}.merge(options)
> str = String.new
> - if encoding
> - str.force_encoding(encoding)
> + if options[:encoding]
> + str.force_encoding(options[:encoding])
> elsif field = row.find { |f| not f.nil? }
> str.force_encoding(String(field).encoding)
> end
>
> Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>