Skip to content
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

Make encoding faster #2

Open
patrickmcnamara opened this issue Jan 9, 2021 · 1 comment
Open

Make encoding faster #2

patrickmcnamara opened this issue Jan 9, 2021 · 1 comment

Comments

@patrickmcnamara
Copy link
Owner

This library is very slow at encoding images. This should be changed.

I imagine the problem has something to do with the fact that we are doing an O(n) nearest neighbour search for every single pixel (lol). There has to be a better way.

I encoded a 205 MiB 30000x23756 RGB JPEG earlier and it took two hours and fifty minutes on my Ryzen 5 1600. My goal is to have that be under a minute.

@patrickmcnamara
Copy link
Owner Author

Current ideas on this:

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

No branches or pull requests

1 participant