* pref: optimize the diff to make it more accurately reflect changes * pref: optimize the diff page selection