Code Compare starts very slow, normal?

Discussion of open issues, suggestions and bugs regarding file and folder merge tool – Code Compare
jaenicke
Posts: 2
Joined: Fri 12 Sep 2014 13:18

Code Compare starts very slow, normal?

Post by jaenicke » Fri 12 Sep 2014 13:25

Hello,

at the moment I am evaluating the trial. Our current merge tool is Beyond Compare (paid version).

In comparison Code Compare has much more features and displays the differences much better. But unfortunately it is much slower. Beyond Compare starts nearly at once, while Code Compare needs 3 seconds. For a tool, which I use to have a quick look at all changed files in a repository (for example), this is much too slow.

Is there any way to reduce the startup time? Otherwise I can't use Code Compare even though it would be much better...

Thank you,
Sebastian

AlexeyN
Devart Team
Posts: 244
Joined: Wed 12 Sep 2012 12:09

Re: Code Compare starts very slow, normal?

Post by AlexeyN » Tue 16 Sep 2014 08:30

Hello,

Code Compare longest loading takes place at its first launch in this session (e.g. restart computer and launch Code Compare). Next comparisons should be launched in one second or even faster on a modern machine.

I suggest you to turn on the 'Prevent Code Compare closing' option at Tools -> Options -> Code Compare -> General'. This will force Code Compare to hide to the system tray instead of closing, so next comparisons will be near to instant.

jaenicke
Posts: 2
Joined: Fri 12 Sep 2014 13:18

Re: Code Compare starts very slow, normal?

Post by jaenicke » Tue 07 Oct 2014 10:30

In the meanwhile I tried Code Compare with this setting. Yes, now it loads much faster. Not so fast as Beyond Compare, but acceptable.

Thank you!

anders
Posts: 2
Joined: Mon 22 Dec 2014 19:38

Re: Code Compare starts very slow, normal?

Post by anders » Mon 22 Dec 2014 19:44

I have the same issue, all comparisons load very slowly (at least 3 seconds) - configuration: Image

Running version 4.0.54 in VS 2013 SP4 on Windows Server 2012 R2.

Thoughts?

AlexeyN
Devart Team
Posts: 244
Joined: Wed 12 Sep 2012 12:09

Re: Code Compare starts very slow, normal?

Post by AlexeyN » Tue 23 Dec 2014 10:59

Do you open comparison inside Visual Studio? What VCS do you use? How exactly do you launch comparison?

anders
Posts: 2
Joined: Mon 22 Dec 2014 19:38

Re: Code Compare starts very slow, normal?

Post by anders » Tue 23 Dec 2014 14:57

AlexeyN wrote:Do you open comparison inside Visual Studio? What VCS do you use? How exactly do you launch comparison?
Yes, I only open comparisons inside Visual Studio. We're using TFS, but most of the time I launch a comparison from inside a code review (Devart's Review Assistant).

I would add that it takes 3 seconds for the tab to appear, and typically another 2-3 seconds for the panes and code to load, so usually 5-6 seconds total.

AlexeyN
Devart Team
Posts: 244
Joined: Wed 12 Sep 2012 12:09

Re: Code Compare starts very slow, normal?

Post by AlexeyN » Wed 24 Dec 2014 12:55

I have created task to improve performance with VCS + Code Compare. Thank you for participation.

privatepyle
Posts: 12
Joined: Wed 25 Feb 2015 09:37

Re: Code Compare starts very slow, normal?

Post by privatepyle » Wed 25 Feb 2015 09:42

Any progress on this issue?

On our 8GB / i7 / SSD / Win7 / Visual Studio 2013 / TFS 2010 machines, file compares seem to get slower every day. At the moment, a simple compare takes almost 20 seconds to open. If this can't be fixed soon, we will have to try and find a new comparison tool.

Are there any ways to profile performance, to see how much time is lost because of TFS?

AlexeyN
Devart Team
Posts: 244
Joined: Wed 12 Sep 2012 12:09

Re: Code Compare starts very slow, normal?

Post by AlexeyN » Wed 25 Feb 2015 14:35

First of all we need to know how exactly you launch comparison. Do you use Review Assistant?

We will highly appreciate your help in determining the bottleneck. To do so, please measure comparison time by opening the same file with different tools. E.g. open file in Code Compare, then switch comparison tool to Visual Studio internal, and open the same file again. Any other measurements are welcome.

privatepyle
Posts: 12
Joined: Wed 25 Feb 2015 09:37

Re: Code Compare starts very slow, normal?

Post by privatepyle » Wed 25 Feb 2015 16:05

Problem only exist if comparison is launched inside visual studio. But there, it doesnt matter, if I compare TFS files (launch code compare via TFS source control explorer) or if I choose 2 files in windows explorer. Both takes around 19 seconds.

If I start the standalone code compare client, comparison is shown instantly.

So only the visual studio plugin seems to be affected.

By the way: If the files are equal, the message is shown very fast.

Closing the comparison tab also takes around 3 seconds.

AlexeyN
Devart Team
Posts: 244
Joined: Wed 12 Sep 2012 12:09

Re: Code Compare starts very slow, normal?

Post by AlexeyN » Thu 26 Feb 2015 12:06

As far as I can see, the problem is in abnormally long creation of comparison window. Try to open the same file in normal way. Does creation of that window last fast?

Please send us information about the installed Visual Studio extensions (you can get this info at Help -> About -> Copy Info). You can copy and paste the info into this topic, or send it directly to support.

privatepyle
Posts: 12
Joined: Wed 25 Feb 2015 09:37

Re: Code Compare starts very slow, normal?

Post by privatepyle » Thu 26 Feb 2015 12:25

You mean if we just click view? That takes a second.

Code: Select all

Microsoft Visual Studio Premium 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51209

Installed Version: Premium

LightSwitch for Visual Studio 2013   06191-004-0454001-02181
Microsoft LightSwitch for Visual Studio 2013

Team Explorer for Visual Studio 2013   06191-004-0454001-02181
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06191-004-0454001-02181
Microsoft Visual Basic 2013

Visual C# 2013   06191-004-0454001-02181
Microsoft Visual C# 2013

Visual C++ 2013   06191-004-0454001-02181
Microsoft Visual C++ 2013

Visual F# 2013   06191-004-0454001-02181
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06191-004-0454001-02181
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

.NET Demon   1.0
Continuous compilation for Visual Studio

.NET Reflector Visual Studio Extension   8.4.0.39
Integrates .NET Reflector into Visual Studio to allow you to seamlessly debug into third-party code and assemblies, even if you don't have the source code for them.

Visit www.reflector.net for more information.

Copyright (c) 2009-2012 Red Gate Software Inc.

ANTSVsPackage   1.0
Start ANTS Performance and Memory Profilers from Visual Studio

ASP.NET and Web Tools   12.4.51016.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Websites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure

ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.21010.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.3
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Devart Code Compare   4.0.77
Devart Code Compare
Copyright (c) 2012-2014 Devart. All rights reserved.
http://www.devart.com/codecompare/

InstallShield Limited Edition   
InstallShield. For more information visit the Flexera Software website at <http://www.FlexeraSoftware.com>. Copyright © 2013 Flexera Software LLC. All Rights Reserved.

JetBrains ReSharper 8.2.3   C# Edition build 8.2.3000.5176 on 2014-10-09T18:08:24
JetBrains ReSharper 8.2.3 package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper/. Copyright © 2003–2015 JetBrains, Inc.

Microsoft Azure Mobile Services Tools   1.3
Microsoft Azure Mobile Services Tools

Microsoft Team Foundation Server 2013 Power Tools   12.0
Power Tools that extend the Team Foundation Server integration with Visual Studio.

Microsoft Visual Studio Process Editor   1.0
Process Editor for Microsoft Visual Studio Team Foundation Server

PowerShell Tools   1.3
Provides file classification services using PowerShell

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   12.0.41025.0
Microsoft SQL Server Data Tools

StopOnFirstBuildError   1.0
StopOnFirstBuildError

Stops a solution build immediately after a project has failed to build.

http://tech.einaregilsson.com/2011/01/06/stop-build-on-first-error-in-visual-studio-2010/

StyleCop   4.7.49.0
Provides source code style and consistency tools. See http://www.stylecop.codeplex.com/ for more details.

VSColorOutput   1.4.5
Color output for build and debug windows - http://blueonionsoftware.com/vscoloroutput.aspx

Windows Phone 8.1 SDK Integration   1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

XtraReports package   1.0
XtraReports package

SQL Prompt 6
For more information about SQL Prompt, see the Red Gate website at
http://www.red-gate.com
For customer support, call 1-866-733-4283.
Copyright © 2006–2009 Red Gate Software Ltd

AlexeyN
Devart Team
Posts: 244
Joined: Wed 12 Sep 2012 12:09

Re: Code Compare starts very slow, normal?

Post by AlexeyN » Tue 03 Mar 2015 12:02

Thank you for reporting the problem. We will investigate it ASAP.

privatepyle
Posts: 12
Joined: Wed 25 Feb 2015 09:37

Re: Code Compare starts very slow, normal?

Post by privatepyle » Tue 17 Mar 2015 11:08

Any news here?

AlexeyN
Devart Team
Posts: 244
Joined: Wed 12 Sep 2012 12:09

Re: Code Compare starts very slow, normal?

Post by AlexeyN » Thu 19 Mar 2015 12:32

Now we are involved in another Devart project, so the Code Compare project progress is low. We plan to deal with Code Compare in the nearest future, but I can not provide exact dates.

Post Reply