mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-28 11:16:31 +08:00
## Summary Fixes #18025. Both merge paths deduplicated IDs by scanning a plain list (`item not in list`) inside a loop while appending — O(n²) per merge. Replaced with a set-backed `seen` check alongside the existing ordered list: same order, same dedup result, O(n). --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
13 KiB
13 KiB