diff --git a/source/App/EncoderApp/EncAppCfg.cpp b/source/App/EncoderApp/EncAppCfg.cpp
index 0378eaee60b77e7e2ce99d49ddf293574078debb..713143e8db4f475d044d43b645406deb3f03f6ce 100644
--- a/source/App/EncoderApp/EncAppCfg.cpp
+++ b/source/App/EncoderApp/EncAppCfg.cpp
@@ -579,6 +579,10 @@ static uint32_t getMaxSlicesByLevel( Level::Name level )
     \param  argv        array of arguments
     \retval             true when success
  */
+#if _MSC_VER > 1000
+// Disable optimizations to avoid long compile times
+#pragma optimize( "", off )
+#endif
 bool EncAppCfg::parseCfg( int argc, char* argv[] )
 {
   bool do_help = false;
@@ -2537,6 +2541,9 @@ bool EncAppCfg::parseCfg( int argc, char* argv[] )
 
   return true;
 }
+#if _MSC_VER > 1000
+#pragma optimize( "", on )
+#endif
 
 
 // ====================================================================================================================