optimizing compilation