[ruby-core:85580] Re: [Ruby trunk Feature#14478] String #uminus should de-dupe unconditionally

From: Eric Wong <normalperson@...>
Date: 2018-02-15 06:48:58 UTC
List: ruby-core #85580
To reduce compatibility risk, how about we do heap sharing with
fstring for already-frozen strings when calling uminus?

It would deduplicate large strings which require separate
allocations; but won't reduce object count or help with small
strings, though.

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next