3 ms·
some startup performance savings in fewer http requests to fetch the image. small for sure but it's something?
by natebc 3y ago
some startup performance savings in fewer http requests to fetch the image. small for sure but it's something?
- electroly 3y agoIn practice I've found the performance savings often goes the other way--for large (multi-GB) images it's faster to split it up into more layers that it can download in parallel from the registry. It won't parallelize the download of a single layer and in EC2+ECR you won't get particularly good throughput with a single layer.
- whirlwin 3y agoDepends. If you would have to fetch a big layer often because of updates, that's not good. But if what is changing frequently is in a smaller layer, it will be more favorable