Here’s the one trick I used to cut down memory usage of my program from 10.39 GB to 788 KB!
(Finally sitting down with the rust iterator interface, understanding it, and not using a vector to store intermediate results)
Sure, the program does not behave correctly anymore but at least it doesn’t take obscene amounts of memory
@dev "One of my most productive days was throwing away 1,000 lines of code." -Ken Thompson
Imagine how productive you'd be if you deleted ALL of your code!
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance All cultures welcome. Hate speech and harassment strictly forbidden.