From: eregontp@...
Date: 2018-02-19T09:40:54+00:00
Subject: [ruby-core:85640] [Ruby trunk Feature#14492] iseq loading + caching	should be in core

Issue #14492 has been updated by Eregon (Benoit Daloze).


FWIW, here are number on a laptop from 2014 with a i7-4702HQ @ 2.20GHz:

    $ ruby -v
    ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]
    $ time ruby -e exit
    ruby -e exit  0.04s user 0.00s system 98% cpu 0.042 total
    $ time ruby --disable-gems -e exit
    ruby --disable-gems -e exit  0.00s user 0.00s system 94% cpu 0.005 total

So not such a big difference.

But I agree making RubyGems more lazy would be good.

----------------------------------------
Feature #14492: iseq loading + caching should be in core
https://bugs.ruby-lang.org/issues/14492#change-70431

* Author: normalperson (Eric Wong)
* Status: Open
* Priority: Normal
* Assignee: ko1 (Koichi Sasada)
* Target version: 
----------------------------------------
```
... And not in a RubyGem like yomikomu(*)

RubyGems itself is responsible for over 100ms of startup time on my system(**),
so it would be beneficial to make it part of core and speed up rubygems (and stdlib).
$ time ruby -e exit

real    0m0.160s
user    0m0.155s
sys     0m0.004s

$ time ruby --disable=gems -e exit

real    0m0.014s
user    0m0.013s
sys     0m0.000s

(*) git clone https://github.com/ko1/yomikomu.git

(**) I admit, I am intent on continuing use of Ruby on a laptop from 2005.
     That's roughly when I started using Ruby, so any hardware which Ruby
     worked well on back then should work equally well for current and future
     versions of Ruby.

     And maybe this summer I'll dig out a 600 MHz Duron from the early 2000s :D
```




-- 
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>