planetary-ios icon indicating copy to clipboard operation
planetary-ios copied to clipboard

Network/energy usage is too high

Open mplorentz opened this issue 2 years ago • 1 comments

Planetary 1.2.0's energy usage is always "Very High" even when we aren't really syncing or verifying new messages. It looks like we are doing a lot of disk reads and outbound network transmission even when the app is idle. Let's find what part of the code is doing this and fix it so we don't waste our user's bandwidth and battery.

mplorentz avatar Jun 16 '22 15:06 mplorentz

On going issue, might not fix and just switch to scuttlego.

rabble avatar Jul 12 '22 20:07 rabble

This is still an issue and causing problems.

@wsarles will look in to with instruments

rabble avatar Oct 24 '22 20:10 rabble

My research with Instruments revealed that increased energy use of the app is directly correlated to network requests performed by GoSSB. There are two instances in which network requests are at an elevated level:

  1. An established user restoring their identity.
  2. A user scrolling the discovery feed for > 2 minutes.

After discussing with @martindsq, we decided to wait and see if scuttlego will ease energy use.

wsarles avatar Oct 27 '22 15:10 wsarles

With the latest changes we are in the yellow zone (high) but at the bottom of it and 80-85% of "component utilization" is related to "overhead" which is probably just running the radios etc as we stay connected to peers at all times.

boreq avatar Mar 01 '23 21:03 boreq

Image

boreq avatar Mar 01 '23 21:03 boreq

Image

boreq avatar Mar 01 '23 21:03 boreq

I think after #1255 is closed we should decide if we can close this ticker about network+energy usage and just replace it with one about specifically network usage.

boreq avatar Mar 08 '23 17:03 boreq

Scuttlego is already much better than go-ssb. I support closing this, although certainly there are further optimizations that could be done we probably have solved the "I don't use Planetary because my phone gets hot and it kills my battery" and are more in the territory of other network-intensive apps.

mplorentz avatar Mar 09 '23 13:03 mplorentz