Image optimization compression take longer times?
Answered
Waterman posted this in #help-forum
WatermanOP
This is about how I fetch my products in realtime from a database, also my images from a s3 bucket and if the compression takes time.
If I would to have a 3 mb image in my s3 bucket and a 1 mb image in my s3 bucket. Would it take a longer time for the next js in production to compremise the 3 mb?
So my real question is if it actually takes time for it to compress the images.
If I would to have a 3 mb image in my s3 bucket and a 1 mb image in my s3 bucket. Would it take a longer time for the next js in production to compremise the 3 mb?
So my real question is if it actually takes time for it to compress the images.
6 Replies
@Waterman This is about how I fetch my products in realtime from a database, also my images from a s3 bucket and if the compression takes time.
If I would to have a 3 mb image in my s3 bucket and a 1 mb image in my s3 bucket. Would it take a longer time for the next js in production to compremise the 3 mb?
So my real question is if it actually takes time for it to compress the images.
From what I see, the perf difference should be minimal
But if you’re really worried about the perf, the images should be cached after the first request so only the first user is affected by any perf issues at all
WatermanOP
O okay because I do not have the products cached, because I had a bunch of problems that I didn't get the products in realtime before
but now I fixed that so nothing is cached, but I guess I don't have to worry about compressing the images on my own before uploading to s3?
because the difference between those MB is so small?
You shouldn’t have to yeah
Answer