Comments (4)
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.
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.
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.
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)
- Announcing CPNG, "Compatible Network Graphics", a backwards compatible fork of PNG HOT 3
- File process order? HOT 4
- [Question] The order of files that gets processed changes randomly? HOT 6
- Enhance processing of 'dirty alpha' HOT 5
- --fast seems to only use one thread for most of the processing HOT 3
- Add docker release images HOT 7
- 9.1.0 Release missing on crates.io HOT 1
- Add man page to the brew package HOT 1
- Add a warning when a given strip/keep chunk name is invalid HOT 4
- OxiPNG stopped working on Windows 7 HOT 10
- Wildcard (*) fails if folder name contains square brackets ([ ]) HOT 6
- Unexpected --nx --nz behavior. Ignores interlaced images. HOT 1
- Case sensitive names under Windows HOT 1
- error: failed to run custom build command for `libdeflate-sys v1.20.0` HOT 6
- after compress the apng file, YYimage decode can not get the frames count of the apng file. HOT 4
- Threshold option to use with pre-commit HOT 2
- Faster method to bail on already optimized pngs? HOT 4
- Feature request: accept png paths list as stdin to ease wrapper script creation HOT 1
- Wrong Version either Reported or Packaged HOT 2
- `-o max` is worse than `-o 2` in some cases HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oxipng.