[ruby-core:113220] [Ruby master Feature#19538] Performance warnings
From:
"byroot (Jean Boussier) via ruby-core" <ruby-core@...>
Date:
2023-04-13 10:17:32 UTC
List:
ruby-core #113220
Issue #19538 has been updated by byroot (Jean Boussier). I was working on one too, to add the max variation warnings: https://github.com/ruby/ruby/pull/7708 ---------------------------------------- Feature #19538: Performance warnings https://bugs.ruby-lang.org/issues/19538#change-102763 * Author: byroot (Jean Boussier) * Status: Open * Priority: Normal ---------------------------------------- Suggested by @Eregon. 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. ```ruby Warning[:performance] = true ``` -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- [email protected] To unsubscribe send an email to [email protected] ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/