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

EZP-26071: Download asset binary only if we need to create a variation #1717

Conversation

sroze
Copy link
Contributor

@sroze sroze commented Jul 8, 2016

This pull request fixes a major performance issue: it removes the need of any I/O (downloading the image binary) when simply geting an image variation. As you probably know, this method is called at every render of the ezfield_image.

On a "normal" setup with the assets stored on the disk it's not so bad but when storing the assets in S3, we had up to 2 seconds and 60 requests to S3 per page view 😱

@sroze sroze force-pushed the performance/dont-download-binary-if-not-generating-variation branch from b4c19d5 to a3e3d6e Compare July 8, 2016 05:59
@pspanja
Copy link
Contributor

pspanja commented Jul 8, 2016

Big +1 (test failures do not seem related)

@andrerom
Copy link
Contributor

andrerom commented Jul 8, 2016

+1

But we need Jira issue and it should point to stable branch 6.4 as we want to make sure this is included in 6.4.1, /cc @janit

@andrerom andrerom closed this in 96f15b1 Jul 13, 2016
@andrerom andrerom changed the title Download asset binary only if we need to create a variation EZP-26071: Download asset binary only if we need to create a variation Jul 13, 2016
@sroze sroze deleted the performance/dont-download-binary-if-not-generating-variation branch July 14, 2016 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants