Project

General

Profile

Actions

Feature #19538

closed

Performance warnings

Added by byroot (Jean Boussier) about 1 year ago. Updated about 1 year ago.

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

Description

Suggested by @Eregon (Benoit Daloze).

There are program behaviors that are supported, but that we know aren't good for performance, however it's hard for users to know about them.

Now that we have warning categories, we could add a :performance category to allow the VM to emit warning in some situations.

The category would be disabled by default, and users interested in optimizing their program could turn it on in development.

Warning[:performance] = true

Related issues 2 (0 open2 closed)

Related to Ruby master - Bug #19535: Instance variables order is unpredictable on objects with `OBJ_TOO_COMPLEX_SHAPE_ID`ClosedActions
Related to Ruby master - Feature #19573: Add Class#singleton_inheritedRejectedActions
Actions

Also available in: Atom PDF

Like1
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0