[#83107] Alias Enumerable#include? to Enumerable#includes? — Alberto Almagro <albertoalmagro@...>

Hello,

9 messages 2017/10/04

[ruby-core:83440] [Ruby trunk Feature#12973] [RFC] net/http: use require_relative to reduce syscalls

From: naruse@...
Date: 2017-10-21 10:23:30 UTC
List: ruby-core #83440
Issue #12973 has been updated by naruse (Yui NARUSE).

Assignee changed from naruse (Yui NARUSE) to normalperson (Eric Wong)

OK, could you commit it?

----------------------------------------
Feature #12973: [RFC] net/http: use require_relative to reduce syscalls
https://bugs.ruby-lang.org/issues/12973#change-67409

* Author: normalperson (Eric Wong)
* Status: Assigned
* Priority: Normal
* Assignee: normalperson (Eric Wong)
* Target version: 2.5
----------------------------------------
require_relative speeds up loading of files by reducing path
lookups.  On a clean install with RubyGems-enabled,
"ruby -rnet/http -e exit" shows a reduction in failed open(2)
syscalls from 410 to 350 (x86-64 GNU/Linux).

I could not measure a time difference on my Linux-based
machines, however this should be noticeable to users of other
kernels with worse syscall and VFS performance than Linux.

Further use of require_relative will reduce lookups in other
places.


Thoughts?

Ideally, I'd like to get all of stdlib using require_relative.
Syscall failures annoy me greatly by making strace output noisy.

This is probably more suited for the 2.5 development cycle.


---Files--------------------------------
0001-net-http-use-require_relative-to-reduce-syscalls.patch (1.67 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next