Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-2689 in a recent build.
  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    46
    Vote Rating
    0
    Zyphrax is on a distinguished road

      0  

    Default Garbage collection of Models (ST2)

    Garbage collection of Models (ST2)


    Our application is running day and night data is going in and out of application. Models are created based on data from the server and old models are updated or removed from stores.

    We would expect that at some point the browser destroys the old models because no-one is referencing them. However we've noticed that when you create a model, a reference to it is automatically stored in the Ext.Model.cache. These objects will never be available for garabage collection and memory usage will continue to grow.

    For now we have a small workaround, we remove the model from cache when stores are no longer using it:
    Code:
    unjoin: function () {
         this.callParent(arguments);
         if (!this.stores.length)
            this.destroy();
    }

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Location
    Germany
    Posts
    147
    Vote Rating
    10
    Möhre will become famous soon enough

      0  

  3. #3
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thank you for the report and suggestion.

    Sencha Inc

    Jamie Avins

    @jamieavins

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    9
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    Hi,

    Thanks for the report! I have posted temporary overrides that you can use to resolve this issue til the 2.0.1 patch in the other thread: http://www.sencha.com/forum/showthre...age-collection

    Best,
    Tommy

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar