Performance optimization：directory records have judgment
merge