| Summary: | poor XML editor performance if folding is enabled | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Walter Brunauer <walter.brunauer> | ||||||
| Component: | wst.sse | Assignee: | Nitin Dahyabhai <thatnitind> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | d_a_carver, mober.at+eclipse, nsand.dev | ||||||
| Version: | 3.1 | Keywords: | performance | ||||||
| Target Milestone: | 3.2.4 | Flags: | nsand.dev:
review+
|
||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Walter Brunauer
CQ:WIND00253653 Created attachment 188275 [details]
possible patch, haven't verified performance impact
(In reply to comment #2) > Created attachment 188275 [details] > possible patch, haven't verified performance impact I ran some fairly informal tests that basically calculated the time it took to get the indexed regions in AbstractStructuredFoldingStrategy. Before the patch, it took on average 2867.16ms to get the indexed regions. After the patch, it went down to an average of 1258ms. This was for a file at about 2.9MB. Walter: Do you think 1.2 sec are acceptable for a 3 MB file ?
Nitin: Since your patch does seem to improve things, can it be committed?
Do you see potential for more improvement?
Nick: Anything else I'm forgetting?
Hm, given the fact, that all this is in memory, the time being used feels still way too high. However, I understand the algorithm might be hard to change in a simple way, but it should not behave non-linear after all. Created attachment 190069 [details] patch 2 (In reply to comment #4) > Nitin: Since your patch does seem to improve things, can it be committed? > Do you see potential for more improvement? After rereading it a bit, here's a newer version that tightens things up a little more. I don't think it will have a measurable improvement over the original, but it's a little more straightforward. Yes, I believe that it can be committed. New patch looks fine as well. Released in 3.2.4 and committed to HEAD. |