Project

General

Profile

Actions

Feature #16837

closed

Can we make Ruby 3.0 as fast as Ruby 2.7 with the new assertions?

Added by k0kubun (Takashi Kokubun) over 4 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:98174]

Description

Problem

How can we make Ruby 3.0 as fast as (or faster than) Ruby 2.7?

Background

Possible approaches

I have no strong preference yet. Here are some random ideas:

  • Optimize the assertion code somehow
  • Enable the new assertions only on CIs, at least ones in hot spots
    • Not sure which places have large impact on Optcarrot yet
  • Make some other not-so-important assertions CI-only to offset the impact from new ones
  • Provide .so for an assertion-enabled mode? (ko1's idea)

I hope people will comment more ideas in this ticket.


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #16840: Decrease in Hash#[]= performance with object keysClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0