Bug 443468 - File saving is freezing PDT when Outline view is active
Summary: File saving is freezing PDT when Outline view is active
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2014-09-07 14:53 EDT by Michal Niewrzal CLA
Modified: 2020-05-14 11:49 EDT (History)
3 users (show)

See Also:


Attachments
Example file (43.81 KB, text/plain)
2014-09-07 14:53 EDT, Michal Niewrzal CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Niewrzal CLA 2014-09-07 14:53:53 EDT
Created attachment 246800 [details]
Example file

When php file has many members (e.g. 2000 methods in class) then every save is updating whole Outline view viewer. This freezes PDT for a few seconds.
Comment 1 Michal Niewrzal CLA 2014-09-07 17:35:16 EDT
Patch proposal: https://git.eclipse.org/r/#/c/33010/
Comment 3 Michal Niewrzal CLA 2014-09-14 07:36:11 EDT
I found another case where saving file is freezing PDT. When one of the opened files is under GIT control then GitLightweightDecorator is triggering LabelProviderChangedEvent after every save. This is causing refresh of all Outline viewers. If 2-3 files like from example are opened also then PDT is freezing for few seconds.
Comment 4 Eclipse Genie CLA 2015-06-01 16:24:24 EDT
New Gerrit change created: https://git.eclipse.org/r/49135
Comment 5 Michal Niewrzal CLA 2015-06-01 16:26:56 EDT
Exact steps to reproduce:
* Use project under GIT control
* Copy into it 4-5 copies of example file and open all 
* Be sure Outline is opened
* Make any change in one of files and save it
* PDT will freeze for a moment
Comment 7 Michal Niewrzal CLA 2015-06-02 15:35:45 EDT
I hope this is the last patch for this issue ;) Fixed.
Comment 8 Eclipse Genie CLA 2015-06-03 09:11:49 EDT
New Gerrit change created: https://git.eclipse.org/r/49360
Comment 9 Michal Niewrzal CLA 2015-06-03 09:13:01 EDT
Reopened because bug 469271.
Comment 11 Eclipse Genie CLA 2015-06-08 12:23:34 EDT
New Gerrit change created: https://git.eclipse.org/r/49685
Comment 13 Michal Niewrzal CLA 2015-06-09 07:00:01 EDT
Fixed.
Comment 14 Sylvia Tancheva CLA 2015-06-18 10:50:18 EDT
Looks OK now. Did not get stuck. Closing