Giter VIP home page Giter VIP logo

rubymotiondocumentation's People

Contributors

alloy avatar amazedkoumei avatar andyw8 avatar berklee avatar chrislerum avatar chrisradford avatar colinta avatar ddrscott avatar jjaffeux avatar justincampbell avatar kgautreaux avatar lrz avatar marcisme avatar miry avatar ryansobol avatar toshiwo avatar vipulnsward avatar warhammerkid avatar watson1978 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rubymotiondocumentation's Issues

Article on memory management

It would be great to have an in depth article on managing memory with RubyMotion. I don't know exactly what to ask for in the article because I don't know what I don't know.

One issue is that I discovered is that I wasn't using Xcode's instruments correctly. I was tracking the "simulator" process instead of my own app within the simulator. After that discovery, it makes instruments much more useful.

Another issue would be how to effectively use "autorelease_pool". I've found it doesn't hurt to put it in multiple places in the code, especially as the first thing inside loops. Another significant thing seems to be that it can be nested in the code. At first when I started using it, I was afraid to nest it but it seems to work fine that way. It doesn't solve all the memory release problems and I'm unsure of exactly what is happening when it doesn't work.

In past correspondence you've said "it is better to avoid creating too many objects in a single method". Maybe a little more into exactly what is happening in that case or how many is too many. If it is a lot, does it help to wrap sections of them in autorelease_pool? What exactly is the situation when RubyMotion isn't able to free up memory that isn't used anymore?

...and you said "I should try to defer that asynchronously (using the Dispatch module)"

I've had mixed success with that. I've broken up a long tasks into blocks that are put in an async queue but memory still doesn't seem to be freed up after each block finishes. Adding "autorelease_pool" around pieces of those blocks does help but why doesn't the memory allocated in those blocks already get freed when the queue block finishes? From using "instruments" it seems that the heap memory is getting freed after each queue block finishes but the overall memory still creeps higher and higher as more blocks are processed.

Use gollum for documentation

I suggest to use gollum for the following reasons:

  • docs will be accessible directly on github wiki tab
  • it use markdown
  • it's ruby

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.