General

Profile

tonytonyjan (Weihang Jian)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 2 1 3

Activity

08/10/2020

04:09 AM Ruby master Feature #17111 (Assigned): Improve performance of Net::HTTPHeader#set_form by 40%
## diff
```diff
diff --git a/lib/net/http/header.rb b/lib/net/http/header.rb
index a8901e7..3f1a008 100644
--- ...
tonytonyjan (Weihang Jian)

06/01/2018

06:26 AM Ruby master Bug #14795: Should 'net/http' require 'net/http/status' ?
jeremyevans0 (Jeremy Evans) wrote:
> tonytonyjan (Wei-Hang Jian) wrote:
> > IMHO, I would suggest use `Kernel::auto...
tonytonyjan (Weihang Jian)
04:57 AM Ruby master Bug #14795: Should 'net/http' require 'net/http/status' ?
IMHO, I would suggest use `Kernel::autoload`, thus we don't need to type `net/http/status` when we want it, and they ... tonytonyjan (Weihang Jian)
06:03 AM Ruby master Bug #14793: Hash returned from CGI.parse has [] as default value
FYI: https://github.com/ruby/ruby/blob/fef8339f582b125e1fec5f3d47adbb48f7cede92/lib/cgi/core.rb#L393 tonytonyjan (Weihang Jian)

09/20/2017

01:39 PM Ruby master Feature #13924 (Open): Add headings/hints to RubyVM::InstructionSequence#disasm
As the official document mentions, this method will return a String with the human readable instructions. However, it... tonytonyjan (Weihang Jian)

02/21/2015

10:02 AM Ruby master Bug #10877 (Closed): String#sub causes segfault
~~~ruby
str = 'abc'
reg = /(?<foo>a)bc/
str =~ reg
$~['foo'].sub 'a', ''
$~['foo']
~~~
~~~
tmp.rb:5: [BUG] ...
tonytonyjan (Weihang Jian)

Also available in: Atom