improve auto merge speed