codeintel: Try to improve performance of `canonicalizeDocuments`
Created by: efritz
This PR changes the iteration order of work done in the LSIF upload conversion routine canonicalizeDocuments
. Improvements should be a more cache-friendly iteration order of documents while trying to identify and reduce duplicates.
Test plan
- Run the codeintel-QA pipeline
- @varungandhi-src will identify if this is a likely fix to the recent Cloud slowdown