diff options
author | Koichi Sasada <ko1@atdot.net> | 2022-12-15 17:53:55 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2022-12-16 10:04:37 +0900 |
commit | ae19ac5b5ba1e613a788addeb6d4d67fa65f6518 (patch) | |
tree | a431cdff5e73e1b48edb1a2f0b30578162736e68 /NEWS.md | |
parent | 15b60bb1a48b98e2ba267c88551803df5f88355e (diff) | |
download | ruby-ae19ac5b5ba1e613a788addeb6d4d67fa65f6518.tar.gz |
fixed encoding table
This reduces global lock acquiring for reading.
https://bugs.ruby-lang.org/issues/18949
Diffstat (limited to 'NEWS.md')
-rw-r--r-- | NEWS.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -202,6 +202,8 @@ Note: We're only listing outstanding class updates. try to dynamically guess the endian based on a byte order mark. Use `Encoding::UTF_16BE`/`UTF_16LE` and `Encoding::UTF_32BE`/`UTF_32LE` instead. This change speeds up getting the encoding of a String. [[Feature #18949]] + * Limit maximum encoding set size by 256. + If exceeding maximum size, `EncodingError` will be raised. [[Feature #18949]] * Enumerator |