exaloop / codon

A high-performance, zero-overhead, extensible Python compiler using LLVM
https://docs.exaloop.io/codon
Other
13.96k stars 498 forks source link

Is GC turned off in rel V0.16.2? #446

Open dogbert45 opened 11 months ago

dogbert45 commented 11 months ago

I end up with a large and continuously increasing memory usage when using codon. Running the exact same code with python3 I end up with less than 500 Mbyte in the process, and not increasing over time. (Exact except for changing the import statements from 'python import').

But with codon i have to break when the process is going over 20 Gbyte. There is no tail recursion or strange things going on.

Is the GC turned off in V0.16.2? In that case is there a way to turn it on?

Or am I missing something very fundamental here?

arshajii commented 11 months ago

Hi @dogbert45 -- we haven't changed the GC or any of its settings, so what you're seeing is definitely odd. A few questions:

dogbert45 commented 11 months ago

I haven't run this using previous codon releases. I am using Ubuntu 22.04.03 (64 bit) Python 3.10.12

I will try to make a small code version which shows the behaviour.