As the diagram illustrates, assuming profit maximisation, there is allocative inefficiency in both the long and short run. This is because price is above marginal cost in both cases. In the long run the firm is less allocatively inefficient, but it is still inefficient.