News for hackers. Stuff that matters.
Re:Ask HN: How do you search large codebases before adding a... by marginalia_nu on Sunday March 27, 2022 @08:44AM (#30819793)
IntelliJ is struggling noticeably navigating even my tiny 50 KLOC search engine project. I can't even imagine using its search function to get around MLOC-scale projects.
Re:Ask HN: How do you search large codebases before adding a... by rr808 on Sunday March 27, 2022 @12:33PM (#30821572)
That sounds like you have a config issue. Maybe indexing is turned off? Do you get mem low errors? https://www.jetbrains.com/help/idea/increasing-memory-heap.h...
Re:Ask HN: How do you search large codebases before adding a... by reeqan on Sunday March 27, 2022 @09:34AM (#30820106)
It really has no issue as long as you have enough RAM and disabled swap. I recently got a fairly decent gaming laptop that I'm supposed to develop on and the 16 GB RAM is constantly full and it's swapping all the time, browser keeps suspending my background tabs, really pain in the ass.
Re:Ask HN: How do you search large codebases before adding a... by marginalia_nu on Sunday March 27, 2022 @09:56AM (#30820257)
You really do not want to disable swap on Linux. The operating system does not handle out of memory situations well at all if you do.

At any rate, I've got 32 GB of ram and I'm operating off an NVMe-drive, I really don't see what the problem is.

Re:Ask HN: How do you search large codebases before adding a... by rattlesnakedave on Sunday March 27, 2022 @10:19AM (#30820440)
Possibly dumb question, have you adjusted the maximum memory heap size that the JVM can allocate for running IntelliJ?
Re:Ask HN: How do you search large codebases before adding a... by reeqan on Sunday March 27, 2022 @04:43PM (#30823923)
You're right, I should've mentioned this only applies to Windows pagefile rather than swap.
Re:Ask HN: How do you search large codebases before adding a... by matsemann on Sunday March 27, 2022 @09:12AM (#30819944)
Hmm, just checked. The two projects I have open now have 510 KLOC and the other one 200 KLOC, and searching in both feels instant. (This is not including node_modules and python libraries/caches that it also searches through by default)
Re:Ask HN: How do you search large codebases before adding a... by donarb on Sunday March 27, 2022 @10:33AM (#30820529)
Do you have indexing turned off for your project or has indexing not completed? Indexing speeds up your searches.
Re:Ask HN: How do you search large codebases before adding a... by jounker on Sunday March 27, 2022 @11:51AM (#30821199)
It works great for me with much larger projects.
Re:Ask HN: How do you search large codebases before adding a... by kaesar14 on Sunday March 27, 2022 @08:50AM (#30819833)
Same experience unfortunately. As much as I love Jetbrains, these features dont scale with codebases like the microservice I worked on at my X 10s of billions of dollars market cap tech company, where our codebase was maybe the 10th largest.