Performance optimization
Fix C profile