Add NEWS entry about Module#name performance (#2779)

This commit is contained in:
Alan Wu 2019-12-24 14:02:50 -05:00 committed by GitHub
parent 5220145ea2
commit 3e9221d94a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2019-12-25 04:03:16 +09:00
Merged-By: XrXr

3
NEWS
View File

@ -434,6 +434,9 @@ Module::
* Module#autoload? now takes an +inherit+ optional argument, like * Module#autoload? now takes an +inherit+ optional argument, like
Module#const_defined?. [Feature #15777] Module#const_defined?. [Feature #15777]
* Module#name and Module#inspect no longer search through all defined
constants when the receiver is anonymous. [Feature #15765]
* Module#name now always returns a frozen String. The returned String is * Module#name now always returns a frozen String. The returned String is
always the same for a given Module. This change is always the same for a given Module. This change is
experimental. [Feature #16150] experimental. [Feature #16150]