Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak on subscriptions #45

Open
fbarbat opened this issue Apr 2, 2024 · 2 comments
Open

Memory leak on subscriptions #45

fbarbat opened this issue Apr 2, 2024 · 2 comments
Assignees

Comments

@fbarbat
Copy link
Contributor

fbarbat commented Apr 2, 2024

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.

@heckj
Copy link
Collaborator

heckj commented Apr 2, 2024

thanks for opening a new issue with this @fbarbat

@Horusiath Horusiath self-assigned this Apr 3, 2024
@Horusiath
Copy link
Contributor

I'll check it on the yrs side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants