From bc2712361eb3b37e35ec8726ffd323b54908820b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1ll=20Haraldsson?= Date: Sat, 15 Aug 2020 16:21:55 +0000 Subject: [PATCH 1/2] Faster startup --- src/Memento.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Memento.jl b/src/Memento.jl index 826c90f..5c13075 100644 --- a/src/Memento.jl +++ b/src/Memento.jl @@ -1,5 +1,9 @@ module Memento +if isdefined(Base, :Experimental) && isdefined(Base.Experimental, Symbol("@optlevel")) + @eval Base.Experimental.@optlevel 0 +end + using Base: StackTrace, StackFrame using UUIDs using Dates From a47953b4b8314095554ff5dee536d2b6ad59acb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1ll=20Haraldsson?= Date: Fri, 28 Aug 2020 12:42:07 +0000 Subject: [PATCH 2/2] Lesser but conservatively not lowest optimiztion --- src/Memento.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Memento.jl b/src/Memento.jl index 5c13075..52c1ca8 100644 --- a/src/Memento.jl +++ b/src/Memento.jl @@ -1,7 +1,7 @@ module Memento if isdefined(Base, :Experimental) && isdefined(Base.Experimental, Symbol("@optlevel")) - @eval Base.Experimental.@optlevel 0 + @eval Base.Experimental.@optlevel 1 end using Base: StackTrace, StackFrame