| Summary: | Slow typing in big php files – multiline statements indentation 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, silviya | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Natalia Bartol
Created attachment 209755 [details]
Multiline statement indentation improvement - patch
Improvements in attached patch:
1. Two new region types have been added to DefaultIndentationStrategy.isRegionTypeAllowedMultiline(regionType) method: PHP_LINE_COMMENT and PHP_STRING.
2. In PHPHeuristicScanner.findOpeningPeer parameter int bound has been added. Scanning backward stops when bound position is reached.
3. DefaultIndentationStrategy.inMultiline() uses findOpeningPeer with proper bound parameter.
fixed by Natalia great work! Fix applied by Jacek. Verified. Closing Ilina Stefanova |