-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Indy binding for class super plus opto for scopes around super.
* Class super now does a direct indy binding * Restore super utility methods JVM6 still needed * Binding deopt is no longer triggered by closure arg to supers * Unresolved super sets frame and binding deopt (TODO: it should not need binding to get block in simple method bodies) Performance of resolved super calls appears to be about 2x faster than 1.7. ```ruby class A def foo self end end class B < A def foo super() end end 10.times do puts Benchmark.measure { b = B.new 10_000_000.times { b.foo; b.foo; b.foo; b.foo; b.foo } } end ``` Results: ``` JRuby 9000 with invokedynamic 3.040000 0.030000 3.070000 ( 1.095000) 0.610000 0.000000 0.610000 ( 0.599000) 0.640000 0.000000 0.640000 ( 0.606000) 0.600000 0.000000 0.600000 ( 0.590000) 0.600000 0.000000 0.600000 ( 0.602000) 0.590000 0.000000 0.590000 ( 0.590000) 0.600000 0.010000 0.610000 ( 0.592000) 0.600000 0.000000 0.600000 ( 0.597000) 0.600000 0.000000 0.600000 ( 0.602000) 0.600000 0.000000 0.600000 ( 0.602000) JRuby 1.7 with invokedynamic 2.660000 0.030000 2.690000 ( 1.384000) 1.070000 0.000000 1.070000 ( 1.064000) 1.180000 0.000000 1.180000 ( 1.119000) 1.110000 0.010000 1.120000 ( 1.109000) 1.100000 0.000000 1.100000 ( 1.101000) 1.120000 0.000000 1.120000 ( 1.119000) 1.120000 0.000000 1.120000 ( 1.116000) 1.120000 0.000000 1.120000 ( 1.114000) 1.100000 0.000000 1.100000 ( 1.101000) 1.100000 0.000000 1.100000 ( 1.100000) MRI 2.1.2 5.240000 0.000000 5.240000 ( 5.241291) 5.250000 0.010000 5.260000 ( 5.249326) 5.220000 0.000000 5.220000 ( 5.228288) 5.270000 0.000000 5.270000 ( 5.265240) 5.270000 0.000000 5.270000 ( 5.278682) 5.280000 0.010000 5.290000 ( 5.276591) 5.240000 0.000000 5.240000 ( 5.247407) 5.240000 0.000000 5.240000 ( 5.236135) 5.220000 0.000000 5.220000 ( 5.221761) 5.260000 0.000000 5.260000 ( 5.264340) Rubinius 2.2.10 2.773542 0.007273 2.780815 ( 2.750797) 2.170249 0.001253 2.171502 ( 2.171655) 2.172850 0.003060 2.175910 ( 2.176082) 2.188119 0.002913 2.191032 ( 2.191586) 2.145197 0.000986 2.146183 ( 2.146217) 2.127599 0.000201 2.127800 ( 2.127831) 2.163769 0.001115 2.164884 ( 2.164966) 2.154462 0.002307 2.156769 ( 2.156858) 2.146972 0.000304 2.147276 ( 2.147446) 2.153281 0.000254 2.153535 ( 2.153569) ```
- 9.4.12.0
- 9.4.11.0
- 9.4.10.0
- 9.4.9.0
- 9.4.8.0
- 9.4.7.0
- 9.4.6.0
- 9.4.5.0
- 9.4.4.0
- 9.4.3.0
- 9.4.2.0
- 9.4.1.0
- 9.4.0.0
- 9.3.15.0
- 9.3.14.0
- 9.3.13.0
- 9.3.12.0
- 9.3.11.0
- 9.3.10.0
- 9.3.9.0
- 9.3.8.0
- 9.3.7.0
- 9.3.6.0
- 9.3.5.0
- 9.3.4.0
- 9.3.3.0
- 9.3.2.0
- 9.3.1.0
- 9.3.0.0
- 9.2.21.0
- 9.2.20.1
- 9.2.20.0
- 9.2.19.0
- 9.2.18.0
- 9.2.17.0
- 9.2.16.0
- 9.2.15.0
- 9.2.14.0
- 9.2.13.0
- 9.2.12.0
- 9.2.11.1
- 9.2.11.0
- 9.2.10.0
- 9.2.9.0
- 9.2.8.0
- 9.2.7.0
- 9.2.6.0
- 9.2.5.0
- 9.2.4.1
- 9.2.4.0
- 9.2.3.0
- 9.2.2.0
- 9.2.1.0
- 9.2.0.0
- 9.1.17.0
- 9.1.16.0
- 9.1.15.0
- 9.1.14.0
- 9.1.13.0
- 9.1.12.0
- 9.1.11.0
- 9.1.10.0
- 9.1.9.0
- 9.1.8.0
- 9.1.7.0
- 9.1.6.0
- 9.1.5.0
- 9.1.4.0
- 9.1.3.0
- 9.1.2.0
- 9.1.1.0
- 9.1.0.0
- 9.0.5.0
- 9.0.4.0
- 9.0.3.0
- 9.0.1.0
- 9.0.0.0
- 9.0.0.0.rc2
- 9.0.0.0.rc1
- 9.0.0.0.pre2
- 9.0.0.0.pre1
Showing
6 changed files
with
83 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters