LLRT (Low Latency Runtime) is an experimental, lightweight JavaScript runtime designed to address the growing demand for fast and efficient Serverless applications.
Refactored the JSON parsing logic to utilize recursion rather than a non-recursive tree traversal. This new implementation is more efficient, given that the depth of a JavaScript object is typically not excessively deep, resulting in simpler and more maintainable code.
Checklist
[x] Created unit tests in tests/unit and/or in Rust for my feature if needed
[x] Ran make fix to format JS and apply Clippy auto fixes
[x] Made sure my code didn't add any additional warnings: make check
[x] Updated documentation if needed (API.md/README.md/Other)
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Description of changes
Refactored the JSON parsing logic to utilize recursion rather than a non-recursive tree traversal. This new implementation is more efficient, given that the depth of a JavaScript object is typically not excessively deep, resulting in simpler and more maintainable code.
Checklist
tests/unit
and/or in Rust for my feature if neededmake fix
to format JS and apply Clippy auto fixesmake check
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.