Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Slow startup on Sierra #35

Open
simonrob opened this issue Aug 14, 2017 · 6 comments
Open

Slow startup on Sierra #35

simonrob opened this issue Aug 14, 2017 · 6 comments

Comments

@simonrob
Copy link

I've just upgraded to a new laptop with Sierra, and ImageAlpha is now very slow to start.

Previously (Mountain Lion), the ImageAlpha window appeared after one "bounce" of the icon; now it takes 9-10 each time.

Do you know what might be causing this?

@kornelski
Copy link
Owner

The app is written in Python and ObjC, so on startup it needs to compile a lot of Python code. It should be less bad after the very first startup on a new system.

Still, these two are slow complex beasts, so I'm afraid they're out of my control.

If you're looking for something quicker, there's a "Lossy" option in ImageOptim (native app, starts quickly):
https://imageoptim.com/mac

and I've got a basic web interface for pngquant here:
https://imageoptim.com/online

These don't have a preview like ImageAlpha, but offer the same level of compression.

@simonrob
Copy link
Author

Thanks - the slow start persists for me no matter how many times I open ImageAlpha, but I'll persevere because its interface is so useful for helping choose the level of compression required.

I'm a longtime happy user of both ImageAlpha and ImageOptim - thanks for all the great work. I'll try building locally and investigate to see whether I can contribute any changes to speed it up.

@gingerbeardman
Copy link

gingerbeardman commented Jul 15, 2018

I get the slow start (High Sierra, 12 bounces!) each and every launch. It's supremely aggravating.

Where is the compiled Python stored? I can then check it is where it should be.

Can't the Python be pre-compiled inside the app?

@kornelski
Copy link
Owner

Shipping pre-compiled code in the app won't make any difference, because code in the app itself is quite small. I wouldn't be surprised if all the code in the app was just 1% of the code Python runs on startup — while building wrapper objects for all of Cocoa.

@kornelski
Copy link
Owner

I recommend switching to ImageOptim's lossy mode instead. It uses the same compression, but it's all native and starts quickly.

@gingerbeardman
Copy link

gingerbeardman commented Jul 15, 2018

Thanks for the suggestion, but I really need manual control and visual inspection.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants