sangmingming / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Unbearable when toJson a long string(1M) #130

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. a long xml type string, call toJson() method,
2. cost exceed 1 minutes with cpu 100%
3. I used disableEscapeHtml ,but it is no useful.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
1.3

Please provide any additional information below.
I guess escape a very long string cost to much, maybe gson could offer a 
EscapedStringBuffer, so we can build an escaped string, and toJson then 
output it directly.

Original issue reported on code.google.com by iamj...@gmail.com on 26 Jun 2009 at 3:35

GoogleCodeExporter commented 9 years ago
oh, I made a mistake, disableHtmlEscaping works.... 

Original comment by iamj...@gmail.com on 26 Jun 2009 at 3:59

GoogleCodeExporter commented 9 years ago
I am closing this bug since you seem to indicate that the bug report was 
invalid.

Original comment by inder123 on 29 Sep 2009 at 6:13