1. Performance Aspects/ ImprovementsBhuvan KhannaCode Critique & Business Head 2. There are two basic rulesfor writing efficient code:Dont do work that you dont need…