| Summary: | HTMLResourceEncodingGuesser reading stream unnecessarily | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Nick Sandonato <nsand.dev> | ||||
| Component: | wst.html | Assignee: | Nick Sandonato <nsand.dev> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Nick Sandonato <nsand.dev> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | thatnitind | ||||
| Version: | 3.2.3 | Keywords: | performance | ||||
| Target Milestone: | 3.2.4 | Flags: | thatnitind:
review+
|
||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | WI60406 | ||||||
| Attachments: |
|
||||||
|
Description
Nick Sandonato
Created attachment 188617 [details]
patch
Patch makes it so that only if the EncodingGuesser is capable of making a guess will it bother reading from the stream. In a large enough workspace (~1020 HTML files) I saw IFile#getContentDescription() times go from ~10ms per file down to about .66ms per file.
Code checked in. Thanks, Nitin. |