| Summary: | Poor editor(indentation) performance when editing multiline string | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Natalia Bartol <natalia.bartol> | ||||||||
| Component: | PDT | Assignee: | PHP Core <php.core-inbox> | ||||||||
| 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 207594 [details]
acceleratorBenchmark.php - PHP file with very long multiline quoted string
Created attachment 207596 [details]
Indentation performance improvement - patch
Attached patch improves:
1. Finding next character position in scanBackward() method (fixed PHPHeuristicScanner.getPartition()).
2. Checking for multiline tokens in DefaultIndentationStrategy.getIndentationBaseLine() has been added.
thanks,Natalia Created attachment 207754 [details] Wrong indentation case fixed - patch I've found one wrong indentation scenario introduced by previous patch: In unit tests attached to bug: Bug 365235 Test case arrayStatemets4.pdtt. Attached patch fixes this issue. One incorrect indentation scenario found. Patch attached. committed,thanks! Verified. Closing Ilina Stefanova |