fastjson2
fastjson2 copied to clipboard
Fastjson fixes enhancements
What this PR does / why we need it?
Optimized code by using Java streams instead of using former for loops to improve performance when we create SymbolTable object by passing big array of elements. Written basic Junits for SymbolTable class
Summary of your change
Used Java streams to optimize the code as streams improve the performance. Added Junits for SymbolTable class.
Please indicate you've done the following:
- [ ] Made sure tests are passing and test coverage is added if needed.
- [ ] Made sure commit message follow the rule of Conventional Commits specification.
- [ ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
Hi, 这个优化优化一般适用于业务层, 虽然增强了阅读性, 但是实际运行性能会降低.