fastjson2 icon indicating copy to clipboard operation
fastjson2 copied to clipboard

Fastjson fixes enhancements

Open arjun12102019 opened this issue 1 year ago • 2 comments

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.

arjun12102019 avatar Apr 19 '24 12:04 arjun12102019

CLA assistant check
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.

CLAassistant avatar Apr 19 '24 12:04 CLAassistant

Hi, 这个优化优化一般适用于业务层, 虽然增强了阅读性, 但是实际运行性能会降低.

kraity avatar May 02 '24 04:05 kraity