Developer forum

Forum » Swift » Swift compilation

Swift compilation

Joakim
Reply

Hello,

I've just recently set up a fresh swift installation and have some concerns regarding the compilation part. We are experiencing very long compilation times when applying custom styling. Which in turn makes the development aspect not as fluid as say our custom grunt compilation in another rapido project.

The lowest we see is around 3000ms and the highest is around 10 000ms.

What could be causing the high numbers?

 

Thanks,

swift_compiler.png

Replies

 
Stefan Winther Dynamicweb Employee
Stefan Winther
Reply

Hi Joakim

Thanks for your post.

Is this in dev or in prod mode? There could be more than one factors in the mix - e.g node version, host performance, pipeline agent performance. But in your defence - webpack is notoriously prone to lack of compile speed.  

Our webpack setup need a reboost in the nearest furture - thinking about refactoring and perhaps switching to a more 2023 setup (maybe skip Webpack all together and go with a more slim Vite setup)

/Stefan

 

You must be logged in to post in the forum