×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Exclamation One installation of PS60 for each app -> Reduce memory consumption of PyS60 2nd ?

    Hello ,

    I have an interesting question for you PyS60 guys

    This question is only for 2nd edition : Is it possible to reduce memory consumption by installing Python libs (py , pyd files and python222.dll , python_appui.dll) in another location than !\system\libs for each standalone application ?
    First Python is completely desintalled and for each application you must to re-install one version of Python by application in the folder of your standalone application !!!

    ???? = name of the standalone application
    This guy install the libs in !\system\apps\????\libs
    python dll in !\system\apps\????

    So does it works ?
    Cyke64

    Here's the argumentation of this guy DJwa163 who pretends that it reduces memory consumption by 1.5 MegaByte when you are not using Python ...


    Now you have the way out from spending about 1.5mb of RAM continuously for the Python lib files. This happens whether you use a Py app or not. But,s the memory consumption will remain continuous all through. And the same with the Battery life. constant RAM consumption will lead to rapid battery drainage.

    Python libs, when placed in !/System/Libs,helps execute the Python dependent apps. These pyd libs create a platform (medium) where many Python apps are enabled to run, even simultaneously, many apps together.


    Whether you Run a Python app or not, the pyd libs will continue to function on the background, keeping itself ready to launch and execute any python app at any point of time. Its absolutely not a need-dependent process. Its always hungrily ready to Run these apps, irrespective of you're ready to run that or not.

    This is the reason why it keeps on draining RAM CONTINUOUSLY....

    But, the same pyd files,when placed in someother directory, don't create a similar circumstance to Execute Any Python app. And its stops consuming the additional RAM.


    And this property had inspired the idea of standalone. Though, it consumes enough from the memory card, the RAM is spared from getting robbed all the time.
    But, in these standalone apps, the .py are compressed into .pyd and placed into the !/System/Apps/****/Libs folder, instead of !/System/Libs. These are only activated when you Run that particular standalone app. And, never run on the background, once you close the app. i.e. Its totally a need-based process.

    But, the limitation is that one such
    System/Apps/****/Libs directory and the pyd files are essential to run every such standalone app. And these are included inside these standalone.sis files. So, its basically an idea for RAM salvage at the cost of MMC space.
    Last edited by cyke64; 2007-09-28 at 16:55. Reason: copy paste incorrect !
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    386

    Re: One installation of PS60 for each app -> Reduce memory consumption of PyS60 2nd ?

    I don't think that's right. AFAIK the DLLs in Symbian are shared. If you're running several Python apps, they all share the same instance of the dll in RAM. When you close them all, the dll stays in RAM ready to serve another Python app. If you start one, the dll is already loaded into RAM ready to be used. However, if you don't start any Python app and some other app runs out of RAM, the unused dll will be removed from RAM to make space. Simmilar thing happends when you use the "compress RAM" option in apps like FExplorer (note that the name of this option is simply misleading).

  3. #3
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    295

    Re: One installation of PS60 for each app -> Reduce memory consumption of PyS60 2nd ?

    Yep, this is total BS.

  4. #4
    Registered User
    Join Date
    Feb 2006
    Location
    Brazil
    Posts
    523

    Re: One installation of PS60 for each app -> Reduce memory consumption of PyS60 2nd ?

    Quote Originally Posted by cyke64 View Post
    ...Here's the argumentation of this guy DJwa163 who pretends that it reduces memory consumption by 1.5 MegaByte when you are not using Python ...


    Now you have the way out from spending about 1.5mb of RAM continuously for the Python lib files. This happens whether you use a Py app or not. But,s the memory consumption will remain continuous all through. And the same with the Battery life. constant RAM consumption will lead to rapid battery drainage.

    Python libs, when placed in !/System/Libs,helps execute the Python dependent apps. These pyd libs create a platform (medium) where many Python apps are enabled to run, even simultaneously, many apps together.


    Whether you Run a Python app or not, the pyd libs will continue to function on the background, keeping itself ready to launch and execute any python app at any point of time. Its absolutely not a need-dependent process. Its always hungrily ready to Run these apps, irrespective of you're ready to run that or not.

    This is the reason why it keeps on draining RAM CONTINUOUSLY....
    The problem here is the main point of his technique isn't correct.

    Python libraries are only loaded when Python is running.
    When Python isn't in use, the libraries won't absolutely consume any amount of RAM

    The only thing that will logically consume a little bit of RAM is the Python installer's recognizer, but it's a small amount of memory: some kbytes only.
    Nothing to worry about


    best regards
    Http_user_agent:
    NokiaN80-1/3.0 (4.0707.0.7)
    Series60/3.0
    Profile/MIDP-2.0
    Configuration/CLDC-1.1

Similar Threads

  1. Replies: 4
    Last Post: 2007-05-11, 14:55
  2. symbian signed testing problem.
    By anglina in forum Symbian
    Replies: 0
    Last Post: 2007-02-01, 10:15
  3. how to approach to reduce Heap Memory Consumption
    By sharma_durg in forum Mobile Java General
    Replies: 3
    Last Post: 2006-10-03, 21:24
  4. Replies: 5
    Last Post: 2003-02-07, 11:25
  5. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29

Posting Permissions

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