дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-03 16:51:16 +02:00
The TODO index scans the whole project when it opens and rescans changed files, through the Find in Files engine. That engine read a file line by line with no limit on a line's length, so a database dump or bundle without line breaks was read whole into memory (a 2 GB single-line .sql took the backend to 2.6 GB on every change) and searched in quadratic time, and every other large file (logs, dumps) was read in full on each scan. - Background scans (the TODO index, the files a usage search checks, the word candidates of a reference search) now leave out files over 2,500 KB, the code insight limit that IDEA's TODO and word indexes use (`idea.max.intellisense.filesize`). - Every search caps its line buffer at 20 MB, IDEA's content-load limit: a longer line (or file, in a multi-line search) is not searched further instead of being read whole. Fixes #5390