From 8561baf3407ec1ac2a2660143df2355da0be1326 Mon Sep 17 00:00:00 2001
From: mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Fri, 14 Apr 2017 05:19:12 +0000
Subject: Improve performance of type conversion using to_r

* object.c: Add to_r in conv_method_tbl.

* defs/id.def: add to_r.

* benchmark/bm_int_quo.rb: added.

* benchmark/bm_time_subsec.rb: added.

[Bug #13426]
[ruby-core:80665]
[Fix GH-1582]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
---
 defs/id.def | 1 +
 1 file changed, 1 insertion(+)

(limited to 'defs/id.def')

diff --git a/defs/id.def b/defs/id.def
index b5815b7f00..f30b993bd9 100644
--- a/defs/id.def
+++ b/defs/id.def
@@ -38,6 +38,7 @@ firstline, predefined = __LINE__+1, %[\
   to_a
   to_s
   to_i
+  to_r
   bt
   bt_locations
   call
-- 
cgit v1.2.3

