Compile Time and Generics

Posted by on in Programming

You no doubt saw my first video where I compiled a million lines of Delphi code. If not watch it now and then come back here.
 

A lot of people commented that their compile times were similar, but a few questioned the code, specifically it's use of generics. Now it didn't have any generics, so I decided to make a new video. 

This video is compiling the Spring4D Framework. If you aren't familiar with Spring4D you really should be. It is an incredibly useful utility framework full of all sorts of amazing features. I picked it for two reasons: most all modern Delphi developers are using it (or should be) making it very real world, And most importantly, it is full of generics. Not just simple generics, it really pushes the limits of generics, which in turn pushes the limits of the compiler. 

In this video I build Spring4D first with Delphi 10.0 Seattle Update 1, and then in the same Parallels Virtual machine I build it with Delphi 10.1 Berlin Update 1. Berlin includes a number of compiler improvements, specifically around generics, so it should be interesting to see how these perform.


 


Comments

  • Victor
    Victor Thursday, 3 November 2016

    no, i'm talking about compiling 95808 lines of code in 1 minute and 58 seconds. My app uses CoreMidi / CoreAudio so i can't "simply" compile for Windows unless i throw a lot of IFDEFS - but then my app doesn't work anymore.
    Compiling the same code for the iOS simulator goes in 3 seconds ...

  • Victor
    Victor Saturday, 29 October 2016

    Bump!

  • Victor
    Victor Friday, 21 October 2016

    The VCL compiler might be that fast, but my (first) iOS app with about 95000 lines, takes about 2 minutes to compile with 10.1 Berlin Update 1 ...

  • Jim McKeeth
    Jim McKeeth Friday, 21 October 2016

    2 minutes to compile, link, package and deploy to the phone? That is still pretty fast when you consider all that it is doing. You can compile for windows for a faster turnaround time for some debugging.

  • Victor
    Victor Saturday, 22 October 2016

    no, i'm talking about compiling 95808 lines of code in 1 minute and 58 seconds. My app uses CoreMidi / CoreAudio so i can't "simply" compile for Windows unless i throw a lot of IFDEFS - but then my app doesn't work anymore.
    Compiling the same code for the iOS simulator goes in 3 seconds ...

  • Carlos Reyes
    Carlos Reyes Friday, 7 October 2016

    It is being built in 32bit.
    my application has 78669 lines of code and Delphi Berlin 10.1 Update 1
    it takes between .44 to .55 seconds compilation
    Compiling is a 64bit

  • Jim McKeeth
    Jim McKeeth Monday, 10 October 2016

    Wow, very fast.

  • Please login first in order for you to submit comments
  • Page :
  • 1

Check out more tips and tricks in this development video: