Details
Description
saveToAbstract() is invoked for every token in the collection. Hence, it invokes an upper-casing of the tag name for every single token. (a) could this be done less often, (b) can we short circuit out of this method if there are no abstract tags.
Committed fix in 64ac7c07. TestTaggedDocument unit test passes.
Now checks a boolean to see whether to consider abstracts. Only upper cases once (on new tag detection). Added map lookup on the tag name.