optimized doc build performance