Closed vengrov closed 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)
@vengrov this is a brilliant improvement!
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)