Cutting Compile time

Re this thread: Array() function using Pairs causes slow Aggressive Compile

the title is dated and misleading - the actual core problem is the combination of

  • Aggressive compile option
  • any constant-to-variant conversions such as
    var v as variant = "Foobar"
  • note that the Xojo Pair class uses Variants internally

@Underwriters_Technologies : If I were you I would do this:

  • buy the beefiest hardware you can (because this is almost always cheaper than engineer time) and pays off in other ways
  • stop using Aggressive compilation for the daily edit/compile/test development phase
  • review your code for un-necessary use of Variants
  • use Aggressive compilation only for Release builds. This is easy to do using Xojo Build Scripts and/or the IDE communicator
  • as @Greg_O suggests, look into a CI/CD system for release builds
3 Likes