diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2024-09-03 10:40:23 +0200 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-10-03 14:20:34 +0900 |
| commit | 4cd893b0487b9a853a57d1e9cdc461bd0dd6de8f (patch) | |
| tree | 435380d7fc7a860a302d4bf3480bb181e303ec09 /include/ruby/internal/static_assert.h | |
| parent | 57282c62a0df04808d24d63a48be3774f3180763 (diff) | |
[flori/json] Optimize key type check in `json_object_i`
Rather than checking the class we can check the type.
This is very subtly different for String subclasses, but I think it's
OK.
We also save on checking the type again in the fast path.
https://github.com/flori/json/commit/772a0201ab
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11775
Diffstat (limited to 'include/ruby/internal/static_assert.h')
0 files changed, 0 insertions, 0 deletions
