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

提升ParseTree的性能 #580

Closed
wenshao opened this issue Jul 24, 2022 · 3 comments
Closed

提升ParseTree的性能 #580

wenshao opened this issue Jul 24, 2022 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@wenshao
Copy link
Member

wenshao commented Jul 24, 2022

提升在ParserTree场景,也就是JSON字符串Parse为JSONObject场景的性能。在fastjson 1.x中,使用SymbolTable避免重用的Key重复创建从而提升性能。

有用户测试,在这个场景下,fastjson 1.x有更好的性能:
https://juejin.cn/post/7115219049931341854?share_token=f89354b2-5966-4518-ad6a-260b79324771

需要引入类似fastjson 1.x SymbolTable的机制,避免常有Key字符串对象的创建提升性能。

@wenshao wenshao added the bug Something isn't working label Jul 24, 2022
@wenshao wenshao added this to the 2.0.11 milestone Jul 24, 2022
@wenshao
Copy link
Member Author

wenshao commented Jul 24, 2022

已经引入,在ParseTree场景有了很大提升。
296798f

@ahgaoyong
Copy link

666

@wenshao
Copy link
Member Author

wenshao commented Jul 24, 2022

@wenshao wenshao closed this as completed Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants