summaryrefslogtreecommitdiff
path: root/internal/class.h
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2022-09-26 12:48:24 +0200
committerJean Boussier <jean.boussier@gmail.com>2022-09-26 13:41:17 +0200
commit2e88bca24ff4cafeb6afe5b062ff7181bc4b3a9b (patch)
treee77b707d1edaea8b1fa6c840e8a146a4175dd505 /internal/class.h
parent5b0396473bbcd70756a09d887fb7436d6cd72dce (diff)
string.c: don't create a frozen copy for str_new_shared
str_new_shared already has all the necessary logic to do this and is also smart enough to skip this step if the source string is already a shared string itself. This saves a useless String allocation on each call.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6443
Diffstat (limited to 'internal/class.h')
0 files changed, 0 insertions, 0 deletions