amirrajan / rubymotion-applied

RubyMotion documentation provided by the community. Submit a pull request to the docs for a free one year indie subscription.
Apache License 2.0
49 stars 9 forks source link

`ARR_CYCLES_DISABLE=true` #27

Open amirrajan opened 7 years ago

amirrajan commented 7 years ago

image

ryanstout commented 7 years ago

Just to confirm that my issue is related to the cycle collector:

screen shot 2017-09-27 at 3 57 00 pm

I'm seeing a 16 second pause (eeh) all in the cycle collector. My app is fairly small, so I'm starting to think this is a bug in the cycle collector, not just relating to me having too many allocations.

Thanks!

ryanstout commented 6 years ago

@amirrajan I don't. I tried to pull it out, but it didn't happen in isolation. It seemed like it only became an issue once we had a certain amount of objects or something, but just creating random objects didn't do it. (Felt like an N+1 issue, but it probably wasn't) You can close this. I added a bunch of weak ref's and nil'ed out a bunch of things and it stopped being an issue. (Unfortunately, it wasn't consistent enough for me to figure exactly what fixed it..) Mind telling me what triggers the cycle detector?