Precompilation support, consistent speed improvements! #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following the path of JuliaImages/ImageFiltering.jl#255 and JuliaImages/ImageQualityIndexes.jl#54 , Use of precompilation and utilization of latest options in precompilation through use of pkgimage has some great effects and improvements all across the board.
For me, initial invocation of
improves with latest options
Combination of precompilation and latest options in precompilation
In 1.9.0 dropped from 0.58 seconds to 0.015 seconds, approximately 40x improvements which is impressive.
In 1.8.5 dropped from 0.55 seconds to 0.37 seconds on use of precompilation.
I saw improvements almost all across board in benchmarks that can be found in gist below. One concern though for me is size of compiled caches of ExifViewer even in my basic testing, in 1.8.5 it was 1.92 mb(only .ji file) while in 1.9.0 it was 5.04mb(.ji + .dll file). ExifViewer.jl is a small package with just 2 functions and yet taking a lot of space surprisingly.
More details can be found here: https://gist.github.com/ashwani-rathee/d250abdd0172603448b0e81a96815681