Sorry, I didn't mean to microoptimize :)  I actually found my approach slower for sets of only a few items.  For larger sets it's much faster but for smaller ones the overhead of creating the set dominates.