| Summary: | [performance] DefaultFileServiceCodePageConverter is wasteful with main memory | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] Target Management | Reporter: | David McKnight <dmcknigh> | ||||||||
| Component: | RSE | Assignee: | David McKnight <dmcknigh> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | Martin Oberhuber <mober.at+eclipse> | ||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | xuanchen | ||||||||
| Version: | 3.1 | Flags: | xuanchen:
review+
|
||||||||
| Target Milestone: | 3.4 M6 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 358888, 358932 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
David McKnight
Created attachment 189805 [details]
patch to read and write file in segments during conversion
I've committed the change to cvs. I've opened bug 280453 for backporting to RSE 3.0.x. (In reply to comment #3) > I've opened bug 280453 for backporting to RSE 3.0.x. Correction, I opened bug 358888 for the 3.0.x backport. Xuan, could you please review this patch? Just something minor. It seems for two parts of the if statement, the conversion code is the same. I am wondering if you want to move it into a method. Thanks. Created attachment 206967 [details]
updated patch
Xuan, how about this updated patch?
The fix looks good. Thanks. I've updated the HEAD stream with the update. Reopening this because the call to: altFile.renameTo(file); is problemmatic. java.io.File.renameTo() doesn't work when the file already exists. Created attachment 212941 [details]
updated patch to fix rename problem
I've committed the fix to the HEAD stream. I guess the target milestone was meant to be 3.4 M6 , not 3.3 M6. |