Putting HashMap in a heap block hurts memory use, speed, code size
Created attachment 429326 [details] Patch
<rdar://problem/78323737>
*** Bug 225984 has been marked as a duplicate of this bug. ***
Created attachment 429403 [details] Patch
Itβs possible that none of the memory savings here are enough to make a noticeable difference, but also possible that one of these might be common enough that we hit the jackpot. Might be less memory use or heap fragmentation.
After studying test failures, I found one case that will be hard to do. I think I will make a first patch that does most of these in a separate bug and then come back to this bug later to finish the job.