slow compile speed using arduino IDE

Are you on a PC? The IDE is written in Java, and on my PC (16-Core AMD Threadripper) it still takes a while to start up and also to compile - even my Lightroom/Photoshop application is faster.