Merge branch 'nd/attr-match-optim'