Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368947 - Slow typing in big php files – enabling open type/call hierarchy action performance optimization
Summary: Slow typing in big php files – enabling open type/call hierarchy action perfo...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Natalia Bartol CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-18 07:19 EST by Natalia Bartol CLA
Modified: 2020-05-14 11:17 EDT (History)
2 users (show)

See Also:


Attachments
SelectionDispatchAction.dispatchSelectionChanged() in non UI thread (1.67 KB, patch)
2012-01-18 07:25 EST, Natalia Bartol CLA
no flags Details | Diff
Enabling Open Type/Call Hierarchy Action moved to non UI thread - patch (3.16 KB, patch)
2012-01-18 11:46 EST, Natalia Bartol CLA
jacek.pospychala: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Natalia Bartol CLA 2012-01-18 07:19:59 EST
Build Identifier: 

In org.eclipse.php.ui and org.eclipse.dltk.ui plugins
SelectionDispatchAction. selectionChanged(SelectionChangedEvent event) are responsible for enabling/disabling “Open type hierarchy”/”Open call hierarchy” based on what is currently selected in the editor. It would be good to execute those calls in non UI thread as it currently affects typing performance.


Reproducible: Always
Comment 1 Natalia Bartol CLA 2012-01-18 07:25:30 EST
Created attachment 209672 [details]
SelectionDispatchAction.dispatchSelectionChanged() in non UI thread

SelectionDispatchAction.dispatchSelectionChanged(event.getSelection()) wrapped in non UI job.
Comment 2 Natalia Bartol CLA 2012-01-18 07:36:22 EST
Related DLTK bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=368950
Comment 3 Natalia Bartol CLA 2012-01-18 11:46:51 EST
Created attachment 209693 [details]
Enabling Open Type/Call Hierarchy Action moved to non UI thread - patch

Some classes that extend SelectionDispatchAction may contain methods that requires execution in UI thread, so attached patch changes only OpenTypeHierarchyAction and OpenCallHierarchyAction classes. Enabling action is moved to non UI job as it operates on AST and consumes some time.
Comment 4 Jacek Pospychala CLA 2012-01-20 03:16:43 EST
fixed by Natalia

great work!
Comment 5 Natalia Bartol CLA 2012-01-25 07:48:16 EST
Patch applied to HEAD by Jacek.
Comment 6 Sylvia Tancheva CLA 2012-07-06 02:17:38 EDT
Verified. Closing
Ilina Stefanova