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

Enable ahead-of-time compilation #3

Open
hamiltont opened this issue Mar 7, 2015 · 0 comments
Open

Enable ahead-of-time compilation #3

hamiltont opened this issue Mar 7, 2015 · 0 comments

Comments

@hamiltont
Copy link

I was able to see noticeable speedups in sonarr by adding this to my own dockerfile, hope it helps. -O=all is less safe than just --aot, so it may be better to avoid it in some cases. I've noticed it fails on a few of the core libraries (whereas --aot runs with no issues), but it just doesn't worry me that much because mono can fall back to JIT

# Run Ahead-of-time compilation on all DLLs and EXEs
#   See http://www.mono-project.com/docs/advanced/aot/
#   Note: Avoid using -O=all with *.dlls inside /opt/NzbDrone, can cause segfaults
RUN for i in /usr/lib/mono/*/mscorlib.dll; do mono --aot -O=all $i; done && \
 for i in /usr/lib/mono/gac/*/*/*.dll; do mono --aot -O=all $i; done && \
 mono --aot -O=all /opt/NzbDrone/NzbDrone.exe && \
 for i in /opt/NzbDrone/*.dll; do mono --aot $i; done
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

1 participant