optimize gc/cpu