Print Thread
Change between package header and package body is slow
#63075 02/04/22 08:53 AM
Joined: Dec 2005
Posts: 2,004
Roima Denmark
Member
OP Offline
Member
Joined: Dec 2005
Posts: 2,004
Roima Denmark
Shifting between package header and package body (either using Ctrl-H or clicking on the tabs) is slow in version 15.
In version 14, it happened almost in an instance, but in version 15 it is more sluggish (like a full second), you can litterally see PLD removing all visual objects and code and then redrawing everything again.
When you have a package with only a header (e.g. for types or constants), the sluggishness stands out when you press Ctrl-H, because here there is nothing to be shifted as I only have one tab page.

Could seem that it has (also) something to do with the icon size. I have chosen the smallest-but-one icon size. If I change it back to largest icons, it performs better.

Last edited by Claus Pedersen; 02/04/22 09:13 AM. Reason: Added remark about icon size
Re: Change between package header and package body is slow
Claus Pedersen #63086 02/04/22 10:16 AM
Joined: Aug 1999
Posts: 22,200
Member
Offline
Member
Joined: Aug 1999
Posts: 22,200
We'll check it out.


Marco Kalter
Allround Automations
Re: Change between package header and package body is slow
Claus Pedersen #63095 02/04/22 10:44 AM
Joined: Aug 1999
Posts: 22,200
Member
Offline
Member
Joined: Aug 1999
Posts: 22,200
Do you have the Code Contents enabled? Could it be that the Code Contents redrawing is slow? Is it fast when you disable the Code Contents?


Marco Kalter
Allround Automations
Re: Change between package header and package body is slow
Claus Pedersen #63168 02/08/22 10:37 AM
Joined: Dec 2005
Posts: 2,004
Roima Denmark
Member
OP Offline
Member
Joined: Dec 2005
Posts: 2,004
Roima Denmark
If I turn off Show code contents it is still sluggish. Only when I also turn off Hot track code contents, Show code hiararchy, Hot track code hierarchy, it performs good, almost as fast as in version 14

Re: Change between package header and package body is slow
Claus Pedersen #63173 02/08/22 12:31 PM
Joined: Aug 1999
Posts: 22,200
Member
Offline
Member
Joined: Aug 1999
Posts: 22,200
We'll investigate.


Marco Kalter
Allround Automations
Re: Change between package header and package body is slow
Claus Pedersen #63177 02/08/22 02:02 PM
Joined: Aug 1999
Posts: 22,200
Member
Offline
Member
Joined: Aug 1999
Posts: 22,200
We tried to reproduce this with a package body with 31,000 lines (1 MB). Switching between the spec & body takes about 0.1 second, even with the Code Contents and all other features enabled. Can you let me know your package size? If you can send it to me so that we can reproduce, that would be great.


Marco Kalter
Allround Automations
Re: Change between package header and package body is slow
Claus Pedersen #63178 02/08/22 02:40 PM
Joined: Dec 2005
Posts: 2,004
Roima Denmark
Member
OP Offline
Member
Joined: Dec 2005
Posts: 2,004
Roima Denmark
Package with ~4900 lines in body, file size ~380 kb.
Interesting thing, though: if opened from the file system, switching between package header and body is fast, when opened via database (view spec and body), the switch is slow.

Can it be the showing of compiler warnings:
PLW-07206: analysis suggests that the assignment to 'xyz' may be unnecessary
PLW-07207: BULK COLLECT used without the LIMIT clause
etc.
that slows it down (14 warnings in total)?

If I compile the file into the database, it becomes slow again, so maybe it is the showing of the pane with warnings, compiler hints etc. that is slow?

Re: Change between package header and package body is slow
Claus Pedersen #63179 02/08/22 02:43 PM
Joined: Aug 1999
Posts: 22,200
Member
Offline
Member
Joined: Aug 1999
Posts: 22,200
Okay. We'll look into that!


Marco Kalter
Allround Automations
Re: Change between package header and package body is slow
Claus Pedersen #63228 02/11/22 04:29 PM
Joined: Dec 2005
Posts: 2,004
Roima Denmark
Member
OP Offline
Member
Joined: Dec 2005
Posts: 2,004
Roima Denmark
Solved in beta 3


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.052s Queries: 15 (0.027s) Memory: 2.5332 MB (Peak: 3.0378 MB) Data Comp: Off Server Time: 2024-04-19 13:00:05 UTC
Valid HTML 5 and Valid CSS