Closed casperisfine closed 2 years ago
Thanks, could you tell me what this is actually doing though?
String#-@
interns the string.
As shown heap-profiler, if you instantiate X schemas, you end up with X copies of these two strings.
By using String#-@
we deduplicate these strings so that all schemas point to the same (frozen) one, saving about 10KiB (in this case).