Backendless / JS-Code-Runner

Backendless CodeRunner for Node.js
MIT License
7 stars 1 forks source link

improve the performance of json stringification #63

Closed vengrov closed 3 years ago

vengrov commented 3 years ago

I have faced big performance issues with serialising a huge API service response Fixed this by using a Map instead of Array to keep processed objects registry. In fact the O(n) complexity is replaced by O(1)

Valodya commented 3 years ago

@vengrov this is a brilliant improvement!