| Summary: | Poor performance when applying custom syntax highlighting preference when big PHP file is open in the editor | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Natalia Bartol <natalia.bartol> | ||||
| Component: | wst.sse | Assignee: | Natalia Bartol <natalia.bartol> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | nsand.dev | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 3.3.2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Natalia Bartol
Created attachment 208388 [details]
Improved invalidation of text presentation on highlighting style changed event
org.eclipse.wst.sse.ui.internal.style.SemanticHighlightingPresenter.highlightingStyleChanged(HighlightingStyle highlighting)
operation seems to be very inefficient. Whole text representation is invalidated every time the
if (position.getHighlighting() == highlighting && fSourceViewer instanceof ITextViewerExtension2)
condition is not met.
Attached patch changes the flow and makes it similar to
SemanticHighlightingPresenter.invalidateTextPresentation().
Thanks for the patch, Natalia. This looks like it'll help immensely! I've checked in the code for Indigo SR2 and Juno. |