An internal Apple developer team revealed in a new case study that “Java’s memory management approach no longer aligns with our growing demands and efficiency goals.”
The team is now looking for more efficient languages, and in this example chose Swift, achieving a claimed 50 percent reduction in hardware utilization, 90 percent less memory, and 40 percent more throughput.
It is possible that another aspect of the port, a near 85 percent reduction in lines of code, was more significant than the memory management. The team identified aspects of Swift which resulted in cleaner and more concise code, including an emphasis on protocols (interfaces) rather than inheritance, the use of async and await for concurrency, and type safety which eliminates the need for null checks.
--
FROM 223.166.244.*