optimizations based on profiling, 1.4x compilation speedup