Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 398973

Summary: Optimize string escaping in JsonValue class
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 RC2   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch with proposed changes none

Description Ivan Furnadjiev CLA 2013-01-24 09:42:05 EST
During the performance testing we found that JSonValue#quoteAndEscapeString and JSonValue#escapeString could be optimized:
- avoid creation of unnecessarily StringBuilders
- append chars instead of strings
Comment 1 Ivan Furnadjiev CLA 2013-01-24 09:42:55 EST
Created attachment 226048 [details]
Patch with proposed changes
Comment 2 Ralf Sternberg CLA 2013-01-24 09:58:06 EST
+1 to include the patch in 2.0 RC2
Comment 3 Ivan Furnadjiev CLA 2013-01-24 14:58:46 EST
Applied the patch with commit f4fbcaecca75a2f94149189db899ce8c2909af8f.