Optimize extra selections rehighlighting

For ~5000 selection ranges (length mostly 1-3) selection changing time
changed from ~200-300ms to 70-80ms (on Core i3 2100)