Skip to content

Please put the ShadowsocksService into separate process for smaller memory footprint. #15

Closed

Description

@oasisfeng

Currently, ShadowsocksService shares the same process with the configuration UI. This leads to large amount of memory usage (15-20M), and is not optimal for long-running background service.

If separated into its own process (with "android:process" parameter in AndroidManifest.xml), the app process can be reclaimed soon after the configuration UI is closed, leaving ShadowsocksService only small amount of memory footprint (usually < 5M) for long-running.

Process separation does need more work on data passing-through, since no more shared memory space. I found the current implementation of ShadowsocksService was perfectly suitable for process separation, with all its configuration shared via SharedPreferences.

Activity

  1. madeye commented on May 26, 2013

    @madeye
    Contributor

    Thanks for your advice. I have changed the logic as you said. If you'd like to have a try, just download the nightly build or build the latest code yourself.

  2. oasisfeng commented on May 26, 2013

    @oasisfeng
    Author

    Impressive response speed and nightly build! The ShadowsocksService now consumes only about 6M on my phone. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions