In swift the compilation time is really slow the amount of code in your project increases. So i was looking for ways to reduce that time. One approach maybe is to use language keywords like final
or static
to change the way the compiler handles the code in this case using static and dynamic dispatch.
But as far i read is better to avoid runtime overhead reducing dynamic dispatch
So my first doubt is if doing all i can in runtime using more dynamic dispatch reduce compile times at cost of the runtime overhead.
My second doubt is runtime overhead is so bad? that you could sacrifice compile time in order to reduce the overhead?