Using a bit vector to track the active attributes does not really give a significant speed increase, especially for only two attributes Checking if a syntaxtag or an attribute exists in the map just adds unnecessary code