Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Garbage collection of compiled code/functions? #20755

Closed
robertfeldt opened this issue Feb 23, 2017 · 3 comments
Closed

Garbage collection of compiled code/functions? #20755

robertfeldt opened this issue Feb 23, 2017 · 3 comments

Comments

@robertfeldt
Copy link
Contributor

Is there some way to garbage collect compiled functions/code?

For applications that want to compile and then temporarily use a large number of functions (for example for genetic programming, or code specialisation/synthesis applications) it might be important if there was a way the code compiled for temporary use could then be garbage collected so as not to "leak memory". Is there some way to achieve this in the current Julia implementation? If not is this something to think about for future extensions?

This is in an issue since there were not many replies in relation to a question asked on Discourse:
https://discourse.julialang.org/t/is-mem-of-compiled-evaled-functions-garbage-collected/2231

@nalimilan
Copy link
Member

Please use Discourse for questions, and keep GitHub for actual bug reports. Thanks!

@tkelman
Copy link
Contributor

tkelman commented Feb 23, 2017

see #14495 and #18446 and #19013

if you only ever evaluate a piece of code once, you may want to write an interpreting function instead of going through the julia eval and compiler

@robertfeldt
Copy link
Contributor Author

Yes, but in many cases writing the interpreter might be a much harder task than and it is not uncommon that for performance reasons one is not only executing it once but on many different test cases/inputs. But thanks for your links to related issues and discussions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants