Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse解析超长字符串卡住 但gson不会 #859

Closed
riceliu opened this issue Oct 17, 2016 · 7 comments
Closed

parse解析超长字符串卡住 但gson不会 #859

riceliu opened this issue Oct 17, 2016 · 7 comments
Labels
Milestone

Comments

@riceliu
Copy link

riceliu commented Oct 17, 2016

【字符串太长 无法粘贴 请联系lw89491@alibab.inc.com获取】

@JacksonTian
Copy link

可以脱敏后上传到这里。

@riceliu
Copy link
Author

riceliu commented Oct 17, 2016

版本是1.2.7 , 没有看到有附件上传的按钮 提交到comment这里提示“too long”无法提交

@JacksonTian
Copy link

selecting them

@riceliu
Copy link
Author

riceliu commented Oct 17, 2016

请先反base64后再ungzip再解析 字符串.txt

@wenshao
Copy link
Member

wenshao commented Oct 19, 2016

收到,我尽快处理

@wenshao
Copy link
Member

wenshao commented Oct 20, 2016

这个是因为循环引用计算某些场景性能较差导致的,你先关闭循环引用计算吧,如下:

JSON.parseObject(text, Feature.DisableCircularReferenceDetect);

@wenshao wenshao added the bug label Oct 20, 2016
@wenshao wenshao added this to the 1.2.19 milestone Oct 20, 2016
@wenshao
Copy link
Member

wenshao commented Oct 20, 2016

缺省已做性能优化,但关掉循环引用检测会性能会更好。

JSON.parseObject(text, Feature.DisableCircularReferenceDetect);

@wenshao wenshao closed this as completed Oct 20, 2016
asa1997 pushed a commit to Be-Secure/fastjson that referenced this issue Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants