optimize build install batching