-
- Downloads
STY: Small ComputeConfusionMarix clean-ups (kindly provided by Laurentiu Nicola)
The "count-insert" idiom is an antipattern that leads to searching the element twice. Avoid that and also the 0 comparison a bit below. In addition, cache the end iterators of the two maps. This is safe as the iterators stay valid when the map is modified.
Please register or sign in to comment