Optimizing code for speed upgit add * and closed for an Issue #6