Results 1 to 2 of 2

Thread: High memory consumption

  1. #1
    Touch Premium Member
    Join Date
    Sep 2011
    Posts
    41
    Answers
    1
    Vote Rating
    0
      0  

    Default High memory consumption

    We have observed high memory consumption by the applications when run on devices like iPhone (4) and Andorid (Samsung Galaxy).

    Even a simplest of the applications (code below) takes upwards of 15 mb memory on the device. The way we measured it was using a system utility app that shows free memory in the device. Free memory fell by 10 mb as soon as the browser (safari) was started. It fell further 15 mb as soon as the app started.

    Is there something wrong in the app/browser setting? This kind of memory consumption is crashing our application which has things like carousels and lists. This behavior is observed even with the app that was packaged with jsbuilder.

    Any pointers would be highly appreciated

    Code:
    <html>
    <head>
    <meta charset="UTF-8" />
    <title>My Panel</title>
    
    
    <link rel="stylesheet" type="text/css" media="screen, projection, print" href="../../resources/css/sencha-touch.css">
    <link rel="stylesheet" type="text/css" media="screen, projection, print" href="app.css">
    
    
    <script src="../../sencha-touch-debug.js" type="text/javascript" charset="utf-8"></script>
    <script src="app/app.js" type="text/javascript" charset="utf-8"></script>
    
    
    
    
    </head>
    <body/>
    
    
    </body>
    </html>
    Code:
    Ext.Loader.setConfig({
        enabled : true,
        paths : {
            'MyApp' : 'app',
        }
    });
    
    
    
    
    Ext.setup({    
        viewport : {
            autoMaximize : ((Ext.os.is('iOS'))&& (location.href.indexOf('.app') != -1)) ? false : true
        },
        onReady : function() {    
        
            Ext.create('Ext.app.Application', {
                name : 'MyApp',
                fullscreen : true,
                appFolder : 'app',
                launch : function() {
                
                        var mypanel = Ext.create('Ext.Panel', {
                            html:'My Panel' 
                        });
                        
                        Ext.Viewport.add(mypanel);
                    }
            
            });
        }
    });

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Moved to the ST2 Q&A forum.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •