General

Profile

lzap (Lukas Zapletal)

  • Login: lzap
  • Registered on: 02/04/2013
  • Last sign in: 10/07/2020

Issues

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

Activity

10/07/2020

11:24 AM Ruby Feature #17219: Make URI#hostname 86-89% and hostname= 55-154% faster
So I learned that URI is a separate rubygem, therefore I filed PR against https://github.com/ruby/uri/pull/12 and this RM issue is no longer necessary I guess. Please close. lzap (Lukas Zapletal)
10:57 AM Ruby Feature #17219: Make URI#hostname 86-89% and hostname= 55-154% faster
There is a nil exception in the test suite with the initial patch. Also @nobu on Github pointed out that start_with? and end_with? might be faster which is indeed the case. I will update the patch shortly. lzap (Lukas Zapletal)
08:38 AM Ruby Feature #17219: Make URI#hostname 86-89% and hostname= 55-154% faster
Attaching patch. Also available as https://github.com/ruby/ruby/pull/3635 lzap (Lukas Zapletal)
08:35 AM Ruby Feature #17219 (Closed): Make URI#hostname 86-89% and hostname= 55-154% faster
Hello,
URI#hostname extends URI#host with IPv6 support. In URI, IPv6 address must have square brackets (e.g. `http://[2001:db8::1]`), URI#hostname strips these characters out while URI#hostname= adds them if missing. There are three r...
lzap (Lukas Zapletal)

06/12/2019

08:47 AM Ruby Bug #14451: HTTP responses with Content-Length: 0 cause a failure
Hello, thanks for report. REST Client is actually not part of Ruby, feel free to move the report there: https://github.com/rest-client/rest-client lzap (Lukas Zapletal)

02/04/2013

04:36 AM Ruby Bug #7778 (Rejected): Irb loading generates 17x more open/stat system calls when a locale is set
Hello,
I did just found out that when I have a locale set (e.g. cs_CZ in my case), irb does some extra finding for rb/so files which are being required. That slows down loading time and if you have many rubygems, loading can be really...
lzap (Lukas Zapletal)
04:31 AM Ruby Bug #7158: require is slow in its bookkeeping; can make Rails startup 2.2x faster
Ok the above looks like bug in lib/irb/locale.rb:
LC_ALL=C strace irb < /dev/null 2>&1 | grep ENOENT | wc -l
293
It not only triples amount of stat/open calls, it is like 17.5x faster. I am filling new bugreport for this.
lzap (Lukas Zapletal)
04:24 AM Ruby Bug #7158: require is slow in its bookkeeping; can make Rails startup 2.2x faster
Hello,
I am trying Ruby 2.0 RC1 which should contain this fix, but I think I still see many stat and open syscalls with ENOENT result. The number is slightly lower.
$ ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
$ ...
lzap (Lukas Zapletal)

Also available in: Atom