diff options
| author | Jean byroot Boussier <jean.boussier+github@shopify.com> | 2023-09-29 08:48:46 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-09-29 06:48:55 +0000 |
| commit | f14cee39b867e416b974856171b52f725cb4892a (patch) | |
| tree | 65da333ecde98e4c6e2007f399afd544790d7de8 /test/ruby | |
| parent | b9bf419aa36e438760fda4109561358bb20d09f1 (diff) | |
[ruby/ostruct] Emit a performance warning when OpenStruct is used
(https://github.com/ruby/ostruct/pull/56)
The OpenStruct documentation clearly state that it shouldn't
be used when performance is expected.
Ruby 3.3 introduce a new category of warnings that is silenced
by default: performance.
The expected use case is to enable this warning when looking
for potential performance issues within an application.
As such I think it would make sense to emit a performance warning
when OpenStruct is used, as it may help pinpoint that a dependency
rely on it, etc.
https://github.com/ruby/ostruct/commit/5826e12db8
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions
