Cosmos icon indicating copy to clipboard operation
Cosmos copied to clipboard

Heap.Collect on filesystem operations

Open valentinbreiz opened this issue 10 months ago • 5 comments

Heap.Collect should be automatically called between different filesystem operations. The problem is managing large files will create a lot of objects in memory (fat chain mainly). For exemple now reading a 10MB FAT32 file needs 2GB of RAM!! We must clear regularly to decrease needed RAM size.

valentinbreiz avatar Sep 26 '23 08:09 valentinbreiz

i feel this is treading the symptoms but not the problem

like would it not be better to fix the fat driver so it does not need to make as may objects or see if we can reuse objects or manually clean up object

zarlo avatar Sep 26 '23 11:09 zarlo

i feel this is treading the symptoms but not the problem

like would it not be better to fix the fat driver so it does not need to make as may objects or see if we can reuse objects or manually clean up object

I agree

quajak avatar Sep 28 '23 13:09 quajak

How does it use 2GB of ram???

9xbt avatar Sep 30 '23 13:09 9xbt

How does it use 2GB of ram???

my guess very bad memory leaks

zarlo avatar Sep 30 '23 23:09 zarlo

my guess very bad memory leaks

darn man

9xbt avatar Oct 09 '23 08:10 9xbt