gaia search algorithm performance optimize.