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 occupation #19

Open
rokugou opened this issue Apr 30, 2014 · 3 comments
Open

Memory occupation #19

rokugou opened this issue Apr 30, 2014 · 3 comments

Comments

@rokugou
Copy link

rokugou commented Apr 30, 2014

I have a project something like this:
https://github.com/rokugou/cdq-test

When i created object after all operations.
without association
screen shot 2014-04-30 at 10 14 03 am

with association
screen shot 2014-04-30 at 10 20 54 am

Memory occupation like explosion.

I have the following questions:
1.
If there are any way to solve the memory occupation?

If i destroy all the man data, and insert again with association.
I need to update the apple reference, but how?

I tried to add man_id to apple and iterate all the apple and update reference.
Are there any better way to do this?

When i created object with association in the loop, and save after the loop.
The association reference broken.

I am new to Rubymotion and Objective-C, if there are any stupid questions, sorry about that. Thank you.

@kemiller
Copy link
Contributor

kemiller commented May 1, 2014

Off the top of my head, I'm not sure why you'd see that behavior. I'll need to look into it and get back to you...

@kemiller
Copy link
Contributor

Hi @rokugou, I'm having some trouble getting your sample project to build. Anything you can add?

@rokugou
Copy link
Author

rokugou commented May 13, 2014

ah.......what trouble?
I dont know what i can add, can you give me example?

I am using ruby 2.0.0-p451, rubymotion 2.26, iPhoneSimulator-7.1

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

2 participants