The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,402 other followers

From the bragging “Did you know the IDE starts almost twice as fast in 10.2.2 as it did in 10.1?”

Posted by jpluimers on 2018/07/17

An interesting discussion sprouted from the bragging [WayBack] Did you know the IDE starts almost twice as fast in 10.2.2 as it did in 10.1? https://community.embarcadero.com/blogs/entry/new-in-10-2-2-welcome-page-… – David Millington – Google+.

I do not care very much about IDE start times (Visual Studio starts faster, others like Android Studio start slower than Delphi), more about productivity.

Which means loading projects, opening files and forms, switching projects, etcetera need to be fast and stable.

For me this is when on Delphi projects, I start about half a dozen copies of Delphi about 10 seconds apart (otherwise you get exceptions in any Galileo version), make some tea, then come back.

Each time an IDE crashes, I kill it, start a new one, switch to an existing one, load the projects I need and continue. On a full day working with Delphi, this happens about a dozen times a day.

After that I want to be productive.

Here is where I was so surprised by the great tip from Yusuf Zorlu

+Asbjørn Heid you should try to disable all “livebinding” packages + rename dclbindcomp250.bpl . If i opened a form before i had to wait 20 to 40 seconds … now it is superfast and opens forms under 5 seconds. I don’t need LiveBindings …

and the response by Asbjørn Heid

+Yusuf Zorlu Thank you! Holy cow that’s a difference! As you say, even our most complex forms are down to 4 seconds now.

I never use LiveBindings as they are way to convoluted, unstable and result in logic being in designers as opposed to tool-manageable code.

In addition, LiveBindings have never been really optimised since their inception in Delphi XE2.

This saves a lot of time!

So one day, I need to update Source: Delphi packages I have disabled by prefixing their description with an underscore (and why) and create a batch file with the various [WayBack] reg add commands modifying the package loads.

Related:

–jeroen

2 Responses to “From the bragging “Did you know the IDE starts almost twice as fast in 10.2.2 as it did in 10.1?””

  1. Oooh … I didn’t know that. So simply disabling those packages improves IDE speed ?

    • jpluimers said

      Indeed. I have adopted the PowerShell script https://bitbucket.org/jeroenp/wiert.me/src/tip/Native/Delphi/Scripts/List-Delphi-Installed-Packages.ps1 with a GenerateDisablePackagesScript parameter so it generates a small console script to disable various packages.

      The blog post for it is scheduled later this summer, but example output is:

      >powershell -file D:\Versioned\bitbucket.org\jeroenp\wiert.me\Native\Delphi\Scripts\List-Delphi-Installed-Packages.ps1 GenerateDisablePackagesScript
      
      Parsing argument "GenerateDisablePackagesScript":
      
      Generating reg script to disable obnoxious packages:
      :: Disable script of User installed packages for "Embarcadero Delphi 10.1 Berlin" in hkcu:\Software\Embarcadero\BDS\18.0
      :: Disable script of User installed packages for "Embarcadero Delphi 10.2 Tokyo" in hkcu:\Software\Embarcadero\BDS\19.0
      :: Disable script of System installed packages for "Embarcadero Delphi 10.1 Berlin" in hkcu:\Software\Embarcadero\BDS\18.0
      reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\18.0\Disabled Packages" /v "$(BDSBIN)\dclbindcomp240.bpl" /t REG_SZ /d "Embarcadero LiveBindings Components" /f
      reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\18.0\Disabled Packages" /v "$(BDSBIN)\dclBindCompFireDAC240.bpl" /t REG_SZ /d "LiveBinding Expression Components FireDac" /f
      reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\18.0\Disabled Packages" /v "$(BDSBIN)\dclbindcompvcl240.bpl" /t REG_SZ /d "Embarcadero LiveBindings Components VCL" /f
      reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\18.0\Disabled Packages" /v "$(BDSBIN)\dclbindcompdbx240.bpl" /t REG_SZ /d "LiveBindings Expression Components DbExpress" /f
      reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\18.0\Disabled Packages" /v "$(BDSBIN)\dclbindcompfmx240.bpl" /t REG_SZ /d "Embarcadero LiveBindings Components FireMonkey" /f
      :: Disable script of System installed packages for "Embarcadero Delphi 10.2 Tokyo" in hkcu:\Software\Embarcadero\BDS\19.0
      reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\19.0\Disabled Packages" /v "$(BDSBIN)\dclBindCompFireDAC250.bpl" /t REG_SZ /d "LiveBinding Expression Components FireDac" /f
      reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\19.0\Disabled Packages" /v "$(BDSBIN)\dclbindcomp250.bpl" /t REG_SZ /d "Embarcadero LiveBindings Components" /f
      reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\19.0\Disabled Packages" /v "$(BDSBIN)\dclbindcompvcl250.bpl" /t REG_SZ /d "Embarcadero LiveBindings Components VCL" /f
      reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\19.0\Disabled Packages" /v "$(BDSBIN)\dclbindcompdbx250.bpl" /t REG_SZ /d "LiveBindings Expression Components DbExpress" /f
      reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\19.0\Disabled Packages" /v "$(BDSBIN)\dclbindcompfmx250.bpl" /t REG_SZ /d "Embarcadero LiveBindings Components FireMonkey" /f
      :: Disable script of User installed IDE packages for "Embarcadero Delphi 10.1 Berlin" in hkcu:\Software\Embarcadero\BDS\18.0
      :: Disable script of User installed IDE packages for "Embarcadero Delphi 10.2 Tokyo" in hkcu:\Software\Embarcadero\BDS\19.0
      :: Disable script of System installed IDE packages for "Embarcadero Delphi 10.1 Berlin" in hkcu:\Software\Embarcadero\BDS\18.0
      reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\18.0\Known IDE Packages" /v "$(BDS)\Bin\CommunityToolbar240.bpl" /t REG_SZ /d "__Embarcadero Community Toolbar Package" /f
      reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\18.0\Known IDE Packages" /v "$(BDS)\Bin\startpageide240.bpl" /t REG_SZ /d "_Start Page IDE Package" /f
      reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\18.0\Known IDE Packages" /v "$(BDS)\Bin\TrackingSystem240.bpl" /t REG_SZ /d "__Embarcadero Tracking System Package" /f
      :: Disable script of System installed IDE packages for "Embarcadero Delphi 10.2 Tokyo" in hkcu:\Software\Embarcadero\BDS\19.0
      reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\19.0\Known IDE Packages" /v "$(BDS)\Bin\CommunityToolbar250.bpl" /t REG_SZ /d "__Embarcadero Community Toolbar Package" /f
      reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\19.0\Known IDE Packages" /v "$(BDS)\Bin\startpageide250.bpl" /t REG_SZ /d "_Start Page IDE Package" /f
      reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\19.0\Known IDE Packages" /v "$(BDS)\Bin\TrackingSystem250.bpl" /t REG_SZ /d "__Embarcadero Tracking System Package" /f
      

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: