General

Profile

tompng (tomoya ishida)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 11 12

Activity

04/11/2021

10:14 AM Ruby master Bug #17779 (Closed): 特定の順序でHashのkeyを削除した場合に Hash#first が遅くなる
Applied in changeset commit:git|9f9045123efefbd11dd397b4d59596290765feec.
----------
st.c: skip all deleted entries ...
tompng (tomoya ishida)
10:05 AM Ruby master Revision 9f904512 (git): st.c: skip all deleted entries [Bug #17779]
Update the start entry skipping all already deleted entries.
Fixes performance issue of `Hash#first` in a certain case.
tompng (tomoya ishida)

04/06/2021

05:53 PM Ruby master Bug #17779 (Closed): 特定の順序でHashのkeyを削除した場合に Hash#first が遅くなる
再現コード
~~~ruby
require'benchmark'
hash = 1000000.times.to_h { [rand, true]}
p Benchmark.realtime { 100000.times { ...
tompng (tomoya ishida)

10/12/2020

05:20 AM Ruby master Revision e8d03c9a (git): change rb_ractor_queue to ring buffer
tompng (tomoya ishida)

08/28/2020

02:05 AM Ruby master Revision cdd7d410 (git): [ruby/reline] fix cursor_pos regexp match
https://github.com/ruby/reline/commit/1dd80ef188 tompng (tomoya ishida)

02/03/2020

07:53 AM Ruby master Bug #16603 (Closed): Passing number or symbol to kwargs splat causes segmentation fualt
Passing 1 or :a as a kwargs splat to a c-lang defined method causes segmentation fault. (It was a TypeError in ruby 2... tompng (tomoya ishida)

12/21/2019

04:38 PM Ruby master Bug #16442 (Closed): Segmentation fault when calling a method with array splat and empty kwargs splat
`a=[1];b(*a, 2, **{})`
~~~
$ ruby -e "a=[1];b(*a, 2, **{})"
-e:1: [BUG] Segmentation fault at 0x000000000000000...
tompng (tomoya ishida)

04/23/2019

02:12 PM Ruby master Bug #15786 (Closed): numbered parameterを使ったprocのparametersに記号が現れる
~~~ruby
->{@100}.parameters.map{@2}.join
#=> "!\"\#$%&'()*+,-./:;<=>?@[\\]^`"
~~~
`proc{@100}.parameters` の場合はそ...
tompng (tomoya ishida)

02/16/2018

11:50 AM Ruby master Bug #14482 (Closed): headerが重複したCSVをheaders:trueでparseした場合、row.to_h[key] と row[key] の結果が一致しない
1行目に重複したkeyがあるcsvファイルをheaders: trueでparseした場合、
row[key]とrow.to_h[key]が異なる値を返します。
~~~ruby
require 'csv'
invalid_...
tompng (tomoya ishida)

01/25/2018

01:13 PM Ruby master Feature #14401 (Open): Integer#digitsの逆の動作をするメソッドが欲しい
Integer#digitsの逆の動作をするメソッドがあると良いと思うのですがどうでしょうか?
~~~ruby
inverse_of_digits([5,4,3,2,1]) # => 12345
inverse_of_dig...
tompng (tomoya ishida)

Also available in: Atom