Memory Management in Rust and Swift
Ryan Levick
18413

Automatic Reference Counting…This approach works well and can be much more efficient than more traditional garbage collection approaches, because it does not require some mechanism to traverse the entire heap searching for memory that is no longer referenced.”

Note that most of the GC research done since 1960 has concluded that RC is generally a slower form of GC than tracing. That’s why the JVM and .NET use tracing GCs.

I tested this myself recently and my first benchmark showed Swift taking 5x longer and using 2x more memory than OCaml: https://flyingfrogblog.blogspot.co.uk/2017/12/does-reference-counting-really-use-less_26.html

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.