Depends on the language of course. Most JS tools are strongly single threaded. Rust is quite good for multi core and benefitted hugely from my 3900x but even that only keeps all the cores busy for the first 60% of a compile then we're limited by the slowest chain of dependencies.
The compiles are parallel, but not all work can be done in parallel or divided among 32 threads equally. So from 24 to 32 threads is not typically a 33% increase unless your compiles are huge (like the Linux kernel).
I meant the latest Ryzen Threadrippers, whatever "generation" they are now. The 3970X would likely be a good example.