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

optimize batch generation of previews #19495

Merged
merged 3 commits into from
Apr 10, 2020
Merged

optimize batch generation of previews #19495

merged 3 commits into from
Apr 10, 2020

Conversation

icewind1991
Copy link
Member

by allowing the generation of multiple previews at once we save on having to find, open and decode the max-preview for every preview of the same file

the main use case for this is the preview generator app (pr for that coming next)

in my local testing this saves about 25% of time when using the preview generator app

@icewind1991
Copy link
Member Author

Preview generator part is here nextcloud/previewgenerator#182

That's enough late night being angry at slow code for now 💤

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks sane!

@rullzer
Copy link
Member

rullzer commented Apr 2, 2020

ping...

@rullzer rullzer mentioned this pull request Apr 4, 2020
80 tasks
this saves having to do some of the overhead multiple times

Signed-off-by: Robin Appelman <robin@icewind.nl>
by allowing the generation of multiple previews at once we save on having to find, open and decode the max-preview for every preview of the same file

the main use case for this is the preview generator app (pr for that comming next)

in my local testing this saves about 25% of time when using the preview generator app

Signed-off-by: Robin Appelman <robin@icewind.nl>
@rullzer rullzer mentioned this pull request Apr 9, 2020
59 tasks
@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Apr 9, 2020
@rullzer
Copy link
Member

rullzer commented Apr 10, 2020

@rullzer rullzer added 2. developing Work in progress enhancement and removed 4. to release Ready to be released and/or waiting for tests to finish labels Apr 10, 2020
Signed-off-by: Robin Appelman <robin@icewind.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants