| Summary: | Slow typing in big php files when Outline view is open | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Natalia Bartol <natalia.bartol> | ||||||||
| Component: | PDT | Assignee: | Natalia Bartol <natalia.bartol> | ||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | jacek.pospychala, silviya | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows 7 | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Natalia Bartol
Created attachment 209675 [details]
PHPContentOutlineProvider performance improvement - patch
Attached patch modifies PHPContentOutlineProvider class in a way that useStatements are now cached. The sourceModule is parsed only during first call to getChildren in main thread and it is updated later on every elementChangedEvent in non UI job. Typing gets smoother with Outline view open.
Created attachment 209677 [details]
PHPStructuredEditor patch
Small modification in PHPStructuredEditor: not updating Outline view if it is not visible on current perspective.
Created attachment 209699 [details]
PHPContentOutlineProvider performance improvement - patch II
Even better patch for PHPContentOutlineProvider. All AST operations should run in non UI thread on elementChanged event.
fixed by Natalia great work! fixed by Natalia, great work! Fix applied by Jacek. Verified. Closing. |