Closed 0xd34df00d closed 3 years ago
With modify its space complexity is O(n), with modify' it might be O(1) if the underlying algorithm supports that.
modify
modify'
In other words, looks like this fixes a space leak.
Hi @0xd34df00d , thank you for the patch. What made you notice this problem, and/or could you supply a benchmark?
With
modify
its space complexity is O(n), withmodify'
it might be O(1) if the underlying algorithm supports that.In other words, looks like this fixes a space leak.