Project instances are kept into memory of the Gradle Daemon
gugau-fr opened this issue · comments
Hello
First, thanks for this plugin. I'm using the version 2.2 and I confirm this issue is in version 2.3 too.
The method Python.getPythonBinary
is annotated with@Memorized
and it's first parameter is a Project
instance. Thus, each project instance passed to this method is kept in the memory of the Gradle daemon.
In my particular case, that leads to out of memory issues because each Project
instance occupy ~77MB (I may have an issue regarding this of course).
I think the Project
instances should not be kept into memory as this leads to a memory leak. Also the cache is by-passed because each Gradle call uses new Project
instances.
Thanks !
Hello!
I would fix that, thank you!