improved 'todo filter' performance