Lazarus IDE is really large project.
It takes too much time to recompile and to rebuild it.
Your solution did not help me to rebuild IDE faster.
Off topic: Depending on your PC it should take between 1 minute (fast PC, no extra packages) and 5 minutes (10 year old 32bit, 2 core only, with magnetic HDD).
If it takes significantly longer:
- Ensure you do NOT smartlink (especially if you are low on free memory)
- Compile with O1 or no optimization
- Maybe try compile without debug info -g- but that should only matter if you have a really really really slow disk.
If you need more on this topic, please create a new thread (and do not reply to this here)