y-crdt/yswift

Memory leak on subscriptions

fbarbat opened this issue · 2 comments

As discussed in #44 (comment), running this test causes memory to steadily increase if looking at Activity Monitor.

    func test_allocateTooMany() {
        for i in 1...1000000000 {
            let s = text.observe { _ in }
            text.unobserve(s)
        }
    }

This is pointing to a leak somewhere. I don't know if it is Yswift itself or Yrs.

thanks for opening a new issue with this @fbarbat

I'll check it on the yrs side.