optimize folder_compare project