3 ms·
You can set optimization per module with `Base.Experimental.@optlevel`, though I'm not finding any documentation for it. Could swear it was in a release note.
by ivirshup 5y ago
You can set optimization per module with `Base.Experimental.@optlevel`, though I'm not finding any documentation for it. Could swear it was in a release note.
- cbkeller 5y agoYep! help?> Base.Experimental.@optlevel Experimental.@optlevel n::Int Set the optimization level (equivalent to the -O command line argument) for code in the current module. Submodules inherit the setting of their parent module. Supported values are 0, 1, 2, and 3. The effective optimization level is the minimum of that specified on the command line and in per-module settings.