| Summary: | Slow typing in big php files – PHPStructuredEditor.selectionChanged() performance optimization | ||||||
|---|---|---|---|---|---|---|---|
| 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, kalin.a | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Natalia Bartol
Created attachment 209931 [details]
PHPStructuredEditor.selectionChanged() wrapped in non UI job - patch
Changes introduced by attached patch:
1. As setSelection method is always called with parameter moveCursor=false PHPStructuredEditor.selectionChanged() is wrapped in non UI Job.
2. Two places that require execution in UI thread are wrapped in Display.getDefault.syncExec():
a. Getting carret position in computeHighlightRangeSourceReference()
b. Getting current selection in setSelection
Natalia's patch applied. great job Natalia! Fixed. Closing... Kalin Yanev kalin.a@zend.com |