From 6807f53a7e00098bdc7a56600155b054f7a7e1e9 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Mon, 6 Apr 2020 14:30:28 -0400 Subject: [PATCH] use -O1 for code in Plots.jl --- src/Plots.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Plots.jl b/src/Plots.jl index 152f0f24..5c960e19 100644 --- a/src/Plots.jl +++ b/src/Plots.jl @@ -1,5 +1,9 @@ module Plots +if isdefined(Base, :Experimental) && isdefined(Base.Experimental, Symbol("@optlevel")) + @eval Base.Experimental.@optlevel 1 +end + const _current_plots_version = VersionNumber(split(first(filter(line -> occursin("version", line), readlines(normpath(@__DIR__, "..", "Project.toml")))), "\"")[2]) using Reexport