You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With RAYON_NUM_THREADS=1, loading and decoding file by rawloader takes ~650ms, but later I need this to put into pipeline and this pipeline takes ~12 seconds of time.
With multithreading enabled, pipeline time is reduced to 4.5 second.
It was suggested to me to use this code, so I am not sure if it is optimal(probably not)
Is there faster way to achive this in this library?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When looking at rawloader I found that project is no longer active, so I started to search for alternative and rawler may be solution for me.
I use rawloader only for one thing - reading raw files and converting it into image-rs dynamicImage structure.
But this is really slow,
To test this I used example file from - https://www.learningcontainer.com/sample-cr2-file-download/ - 64.02 MB - 8734x5856px
Code to load - https://github.com/qarmin/czkawka/blob/8df5e991a6f05e49069a447d7d300de433ed8f2f/czkawka_core/src/common.rs#L186-L225
With RAYON_NUM_THREADS=1, loading and decoding file by rawloader takes ~650ms, but later I need this to put into pipeline and this pipeline takes ~12 seconds of time.
With multithreading enabled, pipeline time is reduced to 4.5 second.
It was suggested to me to use this code, so I am not sure if it is optimal(probably not)
Is there faster way to achive this in this library?
Beta Was this translation helpful? Give feedback.
All reactions