Simplify the computation of duplicates
Simplify the computation of duplicates

Do not cache the result, it hardly spares computations.
We fully recompute the duplicates every time.

James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop