Hi Michael, You're right - I'm not seeing much speed improvement on my 2021 MBP. But I think it's still a worthwhile change since it still helps in terms of preventing SSD wear and tear (or is that also no longer a thing with NVMe?). After I posted, I found what I wanted do was pretty easy - modified the build.dir and dist.dir in the project's nbproject/project.properties file.
Best, Tom p.s. I have an old habit of always doing 'Clean & Build" (a habit born out of old (late '90s early 2000s) but painful memories of NB not always recompiling changed files when you simply did 'build' or 'Play') - so I do lots of writes of .class files during a day. > On Nov 5, 2024, at 3:21 PM, Michael Bien <mbie...@gmail.com> wrote: > > Hi Thomas, > > I use ram disks quite often on linux, expectation wise: if you already have a > NVMe drive you will rarely see any noteworthy speedup. > > So I use them for tasks i would have typically used /tmp before. For example > a clone/build/run script for PR reviews. The advantage there is that ram > disks can be instantly wiped for the next PR. > > Before trying anything I would do a simple benchmark, clone (or copy, > obviously don't move!) your whole project into a ramdisk and check if you see > any difference during a build. Moving only your output folders into a ram > disk realistically won't do much most likely - but at least you know what you > might expect as best case scenario. > > regards, > -mbien > > > On 05.11.24 18:37, Thomas Wolf wrote: >> Hi, >> macOS makes it really easy to create a RAM disk, so I thought it might be >> interesting to see what kind of build speed improvements I'd see by letting >> Netbeans use it for its build artifacts - i.e. the build/ and dist/ >> directories within a Netbeans project directory. Is there a way to do this >> from within the Netbeans GUI or do I need to hand-edit one of the nbproject >> config files (if so, where is it? I'm not familiar with those files)? I >> didn't see anything in the GUI project "properties" screen. >> >> In case anyone's interested - here's how you can create a 2GB RAM disk: >> diskutil erasevolume HFS+ "RAMDisk" `hdiutil attach -nomount ram://4194304` >> <ram://4194304%60> >> >> Thanks for all info, >> Tom >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists