holoirc further optimize algorithms to improve performace