1 Commits
Author SHA1 Message Date
yoominhoandGitHub 647352f6a0 perf: O(1) title lookup in markdown import merge (#13117)
collectDocumentsAndAttachments merged a folder/file sharing a title by scanning
the sibling list with out.find(d => d.title === child.title) once per child —
O(n²) over the number of siblings in one directory, which for a flat import can
be large. Index the siblings by title in a Map and look up in O(1). First
occurrence wins, matching find; the merge still mutates the same object.
2026-07-29 23:04:08 -04:00