Copying data is wasteful, mutating data is dangerous ↦
If you’re processing large amounts of data in memory, copying data uses up RAM, but mutating data leads to bugs. Learn the design pattern that gives you safety while still reducing memory usage: interior mutability.
Discussion
Sign in or Join to comment or subscribe