l0ng-ai
503ed3b9bb
fix(search): keep background scans off huge files and bound a search's line buffer ( #5659 )
...
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
2026-11-25 00:45:06 +08:00
..
2026-11-11 21:23:38 +08:00
2026-11-24 23:49:11 +08:00
2026-11-24 23:59:44 +08:00
2026-11-18 09:10:40 +08:00
2026-11-18 19:27:54 +08:00
2026-11-13 13:46:25 +08:00
2026-11-19 08:36:35 +08:00
2026-11-20 19:36:19 +08:00
2026-11-23 22:32:58 +08:00
2026-11-23 22:32:58 +08:00
2026-11-18 21:25:58 +08:00
2026-11-09 17:05:20 +08:00
2026-11-20 13:45:47 +08:00
2026-11-04 01:09:07 +08:00
2026-11-19 17:07:13 +08:00
2026-11-19 17:07:13 +08:00
2026-11-01 12:23:08 +08:00
2026-11-01 12:23:08 +08:00
2026-11-23 23:22:47 +08:00
2026-11-01 15:04:28 +08:00
2026-11-01 15:04:28 +08:00
2026-11-22 21:57:30 +08:00
2026-11-18 09:20:09 +08:00
2026-11-18 09:20:09 +08:00
2026-11-13 22:29:59 +08:00
2026-11-01 19:02:00 +08:00
2026-11-22 00:07:39 +08:00
2026-11-22 00:37:11 +08:00
2026-11-06 14:24:59 +08:00
2026-11-06 14:24:59 +08:00
2026-11-12 22:50:59 +08:00
2026-11-12 22:50:59 +08:00
2026-11-17 04:09:12 +08:00
2026-11-19 21:40:05 +08:00
2026-11-06 23:02:34 +08:00
2026-11-06 23:02:34 +08:00
2026-11-08 06:13:21 +08:00
2026-11-08 06:13:21 +08:00
2026-11-12 22:42:10 +08:00
2026-11-12 22:42:10 +08:00
2026-11-14 00:52:49 +08:00
2026-11-14 00:52:49 +08:00
2026-11-12 03:27:33 +08:00
2026-11-23 23:22:47 +08:00
2026-11-23 23:22:47 +08:00
2026-11-11 19:30:15 +08:00
2026-11-15 04:32:12 +08:00
2026-11-09 17:17:27 +08:00
2026-11-10 06:48:36 +08:00
2026-11-09 17:17:27 +08:00
2026-11-03 22:34:29 +08:00
2026-11-03 22:34:29 +08:00
2026-11-20 22:10:02 +08:00
2026-11-20 22:10:02 +08:00
2026-11-22 00:37:11 +08:00
2026-11-04 06:51:41 +08:00
2026-11-04 06:51:41 +08:00
2026-11-16 09:36:14 +08:00
2026-11-12 02:38:45 +08:00
2026-11-12 02:38:45 +08:00
2026-11-18 23:38:57 +08:00
2026-11-14 01:17:26 +08:00
2026-11-18 16:14:32 +08:00
2026-11-16 23:50:42 +08:00
2026-11-23 20:40:44 +08:00
2026-10-25 21:24:00 +08:00
2026-11-05 23:09:55 +08:00
2026-11-05 23:09:55 +08:00
2026-11-19 22:42:00 +08:00
2026-11-19 22:42:00 +08:00
2026-11-22 15:33:47 +08:00
2026-11-22 15:14:54 +08:00
2026-11-24 20:52:43 +08:00
2026-11-24 20:52:43 +08:00
2026-11-24 20:52:43 +08:00
2026-11-24 20:52:43 +08:00
2026-11-20 16:26:23 +08:00
2026-11-04 14:22:38 +08:00
2026-11-24 08:38:28 +08:00
2026-11-23 23:58:16 +08:00
2026-11-23 23:58:16 +08:00
2026-11-20 09:13:29 +08:00
2026-11-20 09:13:29 +08:00
2026-11-10 03:14:20 +08:00
2026-11-10 03:14:20 +08:00
2026-11-24 08:38:43 +08:00
2026-11-22 15:14:54 +08:00
2026-11-05 21:50:06 +08:00
2026-11-24 23:35:44 +08:00
2026-11-20 05:41:29 +08:00
2026-11-23 23:22:47 +08:00
2026-11-17 03:20:18 +08:00
2026-11-24 21:14:11 +08:00
2026-10-27 12:09:51 +08:00
2026-10-27 18:56:54 +08:00
2026-11-24 21:56:51 +08:00
2026-11-24 21:56:51 +08:00
2026-11-23 23:58:16 +08:00
2026-11-04 02:54:31 +08:00
2026-11-24 06:30:41 +08:00
2026-11-08 00:05:41 +08:00
2026-11-12 02:09:24 +08:00
2026-11-12 02:09:24 +08:00
2026-11-12 02:09:24 +08:00
2026-11-16 03:32:43 +08:00
2026-11-14 10:28:39 +08:00
2026-11-14 10:28:39 +08:00
2026-11-19 23:07:13 +08:00
2026-11-20 02:49:08 +08:00
2026-11-01 00:14:56 +08:00
2026-11-01 00:14:56 +08:00
2026-11-12 02:09:24 +08:00
2026-11-12 02:09:24 +08:00
2026-11-21 19:33:15 +08:00
2026-11-21 19:33:15 +08:00
2026-11-08 01:16:31 +08:00
2026-11-08 01:16:31 +08:00
2026-11-11 22:18:48 +08:00
2026-11-11 22:18:48 +08:00
2026-11-23 22:24:23 +08:00
2026-11-23 22:24:23 +08:00
2026-11-09 08:40:40 +08:00
2026-11-04 20:44:19 +08:00
2026-11-04 20:44:19 +08:00
2026-11-09 19:23:05 +08:00
2026-11-16 18:37:29 +08:00
2026-11-05 11:23:39 +08:00
2026-11-05 11:23:39 +08:00
2026-10-31 20:58:45 +08:00
2026-11-22 00:13:04 +08:00
2026-11-01 16:58:49 +08:00
2026-10-29 10:43:30 +08:00
2026-10-29 10:43:30 +08:00
2026-11-24 06:40:00 +08:00
2026-11-16 09:34:42 +08:00
2026-11-16 09:34:42 +08:00
2026-11-24 21:41:48 +08:00
2026-11-24 22:41:12 +08:00
2026-11-24 11:42:00 +08:00
2026-11-24 22:41:12 +08:00
2026-11-13 19:18:33 +08:00
2026-11-05 13:33:35 +08:00
2026-11-05 13:33:35 +08:00
2026-11-09 08:40:40 +08:00
2026-11-16 09:36:14 +08:00
2026-11-16 09:36:14 +08:00
2026-11-23 22:24:23 +08:00
2026-11-23 22:24:23 +08:00
2026-10-25 21:24:00 +08:00
2026-10-25 21:24:00 +08:00
2026-11-08 00:21:42 +08:00
2026-11-18 21:25:58 +08:00
2026-11-18 21:25:58 +08:00
2026-11-17 09:33:49 +08:00
2026-11-18 09:10:40 +08:00
2026-11-07 10:56:59 +08:00
2026-11-05 21:38:12 +08:00
2026-11-12 22:42:10 +08:00
2026-11-12 22:42:10 +08:00
2026-11-04 02:54:31 +08:00
2026-11-25 00:45:06 +08:00
2026-11-22 21:57:30 +08:00
2026-11-21 12:25:12 +08:00
2026-11-23 21:13:35 +08:00
2026-11-23 21:13:35 +08:00
2026-11-22 05:23:22 +08:00
2026-11-22 05:23:22 +08:00
2026-10-29 15:01:01 +08:00
2026-11-17 21:15:20 +08:00
2026-11-17 21:15:20 +08:00
2026-10-30 22:45:42 +08:00
2026-10-30 22:45:42 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-10-31 22:38:16 +08:00