Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 21698 - StyledText - RTF writer performance improvement
Summary: StyledText - RTF writer performance improvement
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1   Edit
Assignee: Knut Radloff CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-18 11:21 EDT by Knut Radloff CLA
Modified: 2004-09-28 11:00 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Radloff CLA 2002-07-18 11:21:40 EDT
build 20020716

RTFWriter.write currently checks if the text segment to write contains 
characters that need to be escaped ({, }, \). If there is such a character the 
entire text segment is written one character at a time. 
This could be improved by always writing segments from one escaped character to 
the next. 
Performance would be the same if the text has no escaped character and it 
should be a lot better if there are escaped characters.
Comment 1 Knut Radloff CLA 2002-07-30 17:23:03 EDT
Rewrote StyledText.RTFWriter.write(String,int,int) as part of fixing bug 20696.
Fixed in > 20020730
Comment 2 Douglas Pollock CLA 2004-09-28 11:00:35 EDT
*** Bug 32334 has been marked as a duplicate of this bug. ***