Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Performance    [ Add a report in this area ]  
Report #:  22372   Status: Closed
Switching from sourceview to designview is slow
Project:  Delphi Build #:  10.0.2151.25345
Version:    10.0 Submitted By:   Atle Smelvaer
Report Type:  Minor failure / Design problem Date Reported:  12/15/2005 6:23:24 AM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   238221
Resolution: Fixed (Resolution Comments) Resolved in Build: : 10.0.2341.30612
Duplicate of:  None
Voting and Rating
Overall Rating: (6 Total Ratings)
4.50 out of 5
Total Votes: 5
Description
This problem has been very visible in D2005, and was adjusted for in update 3. That update did give some improved speed, and also D2006. But still it is slow, even on very fast computers.

I've made a demonstration in attachments with a AMD64 X2 Dual Core 4400+ with 2Gig RAM (2 x 1Gig matched sticks). This computer should have no delay problems, but when flipping from source to form view, there is a delay on about 2 seconds.

The speed is very related to the amount of components installed. Delphi with no extra components will flip under one second. But when DevExpress, JVCL + some other components are installed, the speed is dramatically gone down.

Since turning off "Show Palette Wizards" and turning on "Always show designer items" does not change the speed problem, the problem does not seem to lie in the recreate of the tool palette, but rather some other routine against components happening when viewing the design surface.
Steps to Reproduce:
Install D2006.

Test switching with no extra components. Pretty fast.

Install a lot of DevExpress components, all JCL and JVCL components, and some others that you have available.

Create a form with many components placed on it, like a pagecontrol with several tabs, then some groupboxes etc.

Try switching from sourceview to designview on this unit. It should be noticeable slower.
Workarounds
None
Attachment
D2006 Movie.zip
Comments

Sebastian Modersohn at 12/15/2005 6:56:05 AM -
Have you tried turning off "Show Palette Wizards" and turning on "Always show designer items" in the oprtions for the tool palette! That should stop the Tool palette from changing when switching from sourceview to designview.

Does that improve the speed significantly or is it still "slow"? See also QC # 22273,

Atle Smelvaer at 12/15/2005 11:10:38 AM -
I have tested the settings, it is still slow. But the problem is directly connected to the amount of components installed. But it seems that it's not connected to the recreate of the tool palette. I will adjust the report.

Stephane Wierzbicki at 12/16/2005 12:21:42 AM -
I confirm that.
I play now 2 hours with BDS 2006.

The more I remove packages (and restart Delphi), the more the IDE is faster

Atle Smelvaer at 12/16/2005 2:19:16 AM -
It could be something related to the structure view maybe. That view is recreated when switching also.

Anyway, Borland should find the problems easy by using a profiler (like AQTime) and testing on a IDE with JVCL installed + several other components. The bottlenecks should appear right away.

Stephane Wierzbicki at 12/16/2005 8:13:13 AM -
Yes, I guess they will point this out very quickly.
I guess that QC 22038 is also affected by the VCL issue.

Stephane Wierzbicki at 12/15/2005 9:03:42 AM -
Hello Atle,

As Sebastian asked, could you have a look at QC # 22273 ? I'm also facing these speed issues when using a large amount of components. The whole IDE is really slow when :

- moving from one form to another one
- editing an Handler
- switching from code to form and vice et versa.

When removing all my 3rd party components, the IDE is damn fast and responsive !



Atle Smelvaer at 12/15/2005 11:21:41 AM -
I have marked it as a duplicate, since it seems these two is about the same issue. Together they will hopefully give the Borland team enough info to reproduce it in their own environment. The key is having a lot of components installed.

Stephane Wierzbicki at 1/2/2006 11:42:47 AM -
Here are some benchmarking ;) (IDE with 1900 components installed, small project (40 forms + 1 big Datamodule (80 Dataset))

1) SWITCHING FROM A UNIT TO ANOTHER ONE (CODE=>CODE/DESIGN=>CODE/DESIGN=>DESIGN/CODE=>DESIGN)
When switching from a unit [Code View ]to another unit [code View] it takes a little bit more than 1 seconds (that's fine)

When switching from a unit [Design View] to another unit [code View] it takes a little bit more than 1 seconds (that's fine)

When switching from a unit [Design View] to another unit [Design View] it takes about 5 seconds

When switching from a unit [Code View] to another unit [Design View] it takes about 5 seconds

2) SWITCHING CODE/DESIGN VIEW WITHIN THE SAME UNIT
When switching from a unit [Design View] to another unit [code View] it takes a little bit more than 1 seconds (that's fine)

When switching from a unit [Design View] to another unit [Design View] it takes about 5 seconds

Erick Sasse at 1/2/2006 11:20:08 AM -
I'm also having this problem.

Mark Edington (Embarcadero) at 1/11/2006 12:05:07 PM -
I have unmarked this as a duplicate 22273 to allow tracking of this issue separately.

Atle Smelvaer at 4/21/2006 1:13:48 AM -
Still the same in D2006 update 2

Server Response from: ETNACODE01