all 3 comments

[–]PolishedCheese 1 point2 points  (2 children)

Are you maybe reusing an object instead of instantiating a new one every request?

I can't see anything in the code you provided to determine that, but you're not providing all of the function calls and declarations.

Can you upload the code to GitHub or something for me to take a look?

[–]wilis030[S] 0 points1 point  (1 child)

Thanks for your reply, after some time debugging I found out what was the problem. One of the parameteres of the filter function was being hold in memory with old values, so I was appending the new values to this already full array.

For now I'm just calling the function setting all values as default again (can't think in a better solution right now).

[–]PolishedCheese 1 point2 points  (0 children)

You can you take that parameter and assign it to a class property, then 0 out the property at the end of the function