-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: Remember processed files #5
Comments
In some ways it already does. Most of the tools used by imgult blaze right through files they have already processed/optimized. Try running it on the same file twice. The second run should be considerably faster. |
At least in my testing with a library consisting of thumbnails and posters for 26 TB worth of movies/TV shows, my server has a big problem surviving with all the processes spawning, even when I change the nice level to 19 😉 That's the reason it would be nice if it created a imgult-processed.txt-file, so that it could diff imgult-files.txt with that and pick up from when the server crashes, Just a thought though 😉 |
I like what you're saying. It will be a bit tricky because several tools process the file (not just one), but I may have an idea. I am curious though, what kind of server and what version of everything are you running?
|
Linux 3.19.0-56-generic #62~14.04.1-Ubuntu x86_64 GNU/Linux jpegoptim v1.3.0 x86_64-pc-linux-gnu |
Will you give this a run? WARNING: THIS VERSION IS UNTESTED, IT MAY EXPLODE. https://github.com/ryanpcmcquen/image-ultimator/blob/diffProcessedFiles/imgult |
It runs and completes, but the second run still seems to run through all of them again |
you're doing the grep, but not sending that to anything, maybe that is the problem? I think you need a third file that you write that grep to, something like imgult-notprocessedfiles.txt? |
The grep takes a while, but it works 👍 |
Great idea! Thanks so much for testing and the suggestion. :^) |
Would you mind if I mentioned your use case in the README for the |
Also, will you give it one final run? https://github.com/ryanpcmcquen/image-ultimator/blob/diffProcessedFiles/imgult I did a little cleanup, with your go-ahead I will release this as the new version. 😺 |
I'd be honored 😄 To clarify, the image-files are far smaller than 26 TB in size, but it's posters, albumart etc. for 26 TB of media. The size of the posters and albumart is roughly 140 GB 😉 |
Still that's quite the testing ground. I am surprised |
Tested this in the same folder as earlier, but noticed this now: It seems good to go right now. |
That's amazing! The You may want to bring up that specific file with the svgo people, it would probably be helpful for them, or they may have an idea what is going on. I would like to know as well. 😃 |
Let me know if there is anything else I can do here, and thanks again for the report! The release is live! https://github.com/ryanpcmcquen/image-ultimator/releases |
Figured out a faster way to do the comparison, by using |
How much faster is it? |
If it still works as it should, which is now hard to determine, it runs through the list so fast it doesn't even show up in |
Tested it now, it does not work, it even stopped working on the first run 😞 |
The new version works though, correct? |
No, it seems to not work, now that I finally got a stable test-folder 😢 The only output i get now:
|
Would you try the master? I borked something, should work now. Also, if this does work we can test |
The hotfix worked, I tried to change |
How about this version? (with |
I have tested |
When I do the manual steps it works, so for some reason it stops working when run from a script. Weird 😕 |
Weird, it runs, but on the second run it doesn't skip any of the files 😕 |
I think there might be a sort-function that needs to run first for it to work |
Strange. It skips all the files here. What arguments are you sending to |
It's just running comm -13 ${IMGULT_PROCESSED_FILES_LIST} ${IMGULT_FILES_LIST} > ${IMGULT_TEMP_FILES_LIST} But it ends up with this:
There might be a way around it by running a sort-function, so that would solve |
By the time we write a sort function, we probably will not save any time over just using the I will keep the |
Ubuntu 14.04 set up like the following runs 4.0.01 on the whole drive without making the server crash: jpegoptim v1.3.0 x86_64-pc-linux-gnu (from normal repositories) |
That's amazing!!! Thank you so much for your help. Does that mean we can close this issue? |
Yes, the issue can be closed. It might be a good idea to write the versions |
That is a good idea! I use Slackware so I have more current versions of all the tools ... luckily when Ubuntu 16.04 gets released people will have much newer versions of everything by default. |
Could you make it so that imgult remembers processed files, similarly to how rsync does? Mainly this is useful so that if the computer crashes during processing imgult can skip already processed files.
The text was updated successfully, but these errors were encountered: