Re:The Garbage Collection Handbook, 2nd Edition
by pjmlp on Saturday April 08, 2023 @12:49PM
(#35495127)
Swift and Objective-C ARC performance is quite poor.
[ Parent
| on HN ]
Re:The Garbage Collection Handbook, 2nd Edition
by KerrAvon on Saturday April 08, 2023 @02:02PM
(#35495940)
Compared to what, though? And is that still the case if all OS components use whatever it is, as opposed to a few applications? Memory efficiency is crucial for overall system performance, and ARC is highly memory-efficient compared to every production GC I’m aware of.
Re:The Garbage Collection Handbook, 2nd Edition
by astrange on Sunday April 09, 2023 @07:03AM
(#35501569)
Peak memory is not the only reason ARC is memory-efficient though, the main reason is that it has better memory reading behavior because it doesn't have to scan for pointers. Server GCs assume all memory containing pointers is cheap to access, which is not true if some of it is swapped out.
Re:The Garbage Collection Handbook, 2nd Edition
by vlovich123 on Saturday April 08, 2023 @08:20PM
(#35498949)
iOS ships the same speed phones as Android with half the RAM. So I’d say here’s a real comparison of ARC vs tracing GC.