On this line: https://github.com/Setono/SyliusShopTheLookPlugin/blob/master/src/OrderProcessor/LookDiscountOrderProcessor.php#L46, all the looks are fetched on each processing of the order. If a shop has thousands of looks this will slow down the order processor.
A possible solution is to find the looks that have one or more of the products that are also in the cart. This way you have a set of 'candidate' looks that you can iterate through afterwards.
On this line: https://github.com/Setono/SyliusShopTheLookPlugin/blob/master/src/OrderProcessor/LookDiscountOrderProcessor.php#L46, all the looks are fetched on each processing of the order. If a shop has thousands of looks this will slow down the order processor.
A possible solution is to find the looks that have one or more of the products that are also in the cart. This way you have a set of 'candidate' looks that you can iterate through afterwards.