From 25bf45d36ce701d35ebb92f9b2ff8f8d11875676 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Fri, 26 Feb 2021 07:18:52 -0500 Subject: [PATCH] Provide FileIO expected function names. Add precompiles (#20) --- src/ImageIO.jl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/ImageIO.jl b/src/ImageIO.jl index 3a8ffcd..14004da 100644 --- a/src/ImageIO.jl +++ b/src/ImageIO.jl @@ -89,4 +89,18 @@ function save(s::Stream{DataFormat{:TIFF}}, image::S; permute_horizontal=false, end end +## Function names labelled for FileIO. Makes FileIO lookup quicker +const fileio_save = save +const fileio_load = load + +## Precompiles +function _precompile_() + ccall(:jl_generating_output, Cint, ()) == 1 || return nothing + @assert Base.precompile(Tuple{typeof(checked_import),Symbol}) +end + +if Base.VERSION >= v"1.5" + _precompile_() +end + end # module