HTML5_Genetic_Cars icon indicating copy to clipboard operation
HTML5_Genetic_Cars copied to clipboard

Memory leak

Open eliduvid opened this issue 5 years ago • 0 comments

Hey!

The app leaks memory, and fails because of it if you leave it running for long enough.

As I saw in heap dump, a problem is with allResults property of state, that is never cleaned up from old data, and seams to contain all the cars that ever existed of something like this. https://github.com/red42/HTML5_Genetic_Cars/blob/f3e9ce5233025f832fd09dafbae901e4485605ac/src/draw/plot-graphs.js#L49

Peace :-)

eliduvid avatar Jul 29 '20 13:07 eliduvid