Loading images seems to be very slow? Comparing my Julia code to Python
using BenchmarkTools, FileIO
path = "/home/dom/Pictures/sd1/jpegs/DSCF0201.jpg"
@btime load(path);
# 1.890 s (245 allocations: 206.01 MiB)
Vs
from PIL import Image
path = "/home/dom/Pictures/sd1/jpegs/DSCF0201.jpg"
# In a seperate notebook cell
%%timeit
Image.open(path);
# 907 µs ± 25.3 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
Since there seems to be some issues in this area, I was wondering if there is a common work around?
I’m running Ubuntu and Julia 1.10.