optimized compilation for split files