Git Product home page Git Product logo

Comments (4)

shssoichiro avatar shssoichiro commented on August 19, 2024

Oxipng should not actually be using the full 12 threads with -Z. At most, it should use 6, because there are only 6 trials needed (one for each filter mode). -Z is also known to be much slower than the default mode, simply because of the nature of zopfli. However, it shouldn't be taking several minutes for a small file (my benchmarks on an i7 were about 25 seconds for a 640x480 file), and this doesn't explain why you're seeing issues with the rest of your computer lagging.

Can you verify that the machine has adequate memory and isn't swapping to disk when running oxipng? Also, if you're on a 64-bit operating system, can you see if you have the same issues with the x86_64 build?

from oxipng.

f2d avatar f2d commented on August 19, 2024

I was watching oxipng in Process Explorer, which reported 13 threads and fully capped CPU usage graph, and the first test picture was pretty big, like 1600x800.

The machine had (and has) around 8 GB free memory and all files lying on RAMdisk, including swap, which should not be used anyway.

Here is process log from AnVir Task Manager (last run defaults to -t 12):

03/21 17:23:47 oxipng.exe 8768 started by cmd.exe PC\user E:\oxipng-v0.15.1-i686-pc-windows-msvc\oxipng.exe -v -Z -t 1 256x256.png
03/21 17:24:00 oxipng.exe 8768 terminated, worked 0:13, CPU 0:12

03/21 17:24:20 oxipng.exe 5824 started by cmd.exe PC\user E:\oxipng-v0.15.1-i686-pc-windows-msvc\oxipng.exe -v -Z -t 6 256x256.png
03/21 17:24:33 oxipng.exe 5824 terminated, worked 0:11, CPU 1:07

03/21 17:24:49 oxipng.exe 7428 started by cmd.exe PC\user E:\oxipng-v0.15.1-i686-pc-windows-msvc\oxipng.exe -v -Z 256x256.png
03/21 17:25:07 oxipng.exe 7428 terminated, worked 0:18, CPU 2:13

03/21 17:46:07 oxipng.exe 7852 started by cmd.exe PC\user E:\oxipng-v0.15.1-x86_64-pc-windows-msvc\oxipng.exe -v -Z -t 1 256x256.png
03/21 17:46:19 oxipng.exe 7852 terminated, worked 0:10, CPU 0:10

03/21 17:46:35 oxipng.exe 16132 started by cmd.exe PC\user E:\oxipng-v0.15.1-x86_64-pc-windows-msvc\oxipng.exe -v -Z -t 6 256x256.png
03/21 17:46:43 oxipng.exe 16132 terminated, worked 0:08, CPU 0:45

03/21 17:46:54 oxipng.exe 7548 started by cmd.exe PC\user E:\oxipng-v0.15.1-x86_64-pc-windows-msvc\oxipng.exe -v -Z 256x256.png
03/21 17:47:12 oxipng.exe 7548 terminated, worked 0:18, CPU 2:17

from oxipng.

f2d avatar f2d commented on August 19, 2024

Reporting: it seems OK now.

Versions tried:
oxipng-v0.16.2-i686-pc-windows-msvc
oxipng-v0.16.2-x86_64-pc-windows-msvc

I have reset priority setting to normal and fed some big and small PNGs to oxipng.exe -Z without -t setting.
Process thread count was 13, CPU workload graph was corresponding to no more than 1-2 threads fully loaded at once.

No problems were encountered.

Should I try skipped previous versions, or just leave it at that?

from oxipng.

shssoichiro avatar shssoichiro commented on August 19, 2024

Interesting. Not much has changed between the two versions, but the bump in rayon from 0.6 to 0.8 seems like the most likely reason for this being fixed now.

I will close this, and if the issue returns in the future, feel free to report it here. Thanks!

from oxipng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.