Skip to content

Commit

Permalink
Provide FileIO expected function names. Add precompiles (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Feb 26, 2021
1 parent 2462db6 commit 25bf45d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/ImageIO.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 25bf45d

Please sign in to comment.