Oddbean new post about | logout
 Is this happening only when you view the threads or in the main home feeds as well? 

The threads bug has been fixed and will be available in the next version. 
 Notice it in the main feed when I have been scrolling for a long time. 
 Very interesting... I never seen it. 

How long is "long time"? Half an hour? 
 Those are rookie numbers... 
 yes... 30 minutes plus.

you could probably cause it to happen by opening the client and scrolling down to "the bottom". Then wait 10 minutes for new posts to appear on your relays 



 
 In the home feed. 
 Also when going to another tab in amethyst, or switching apps.

It frequently is an empty feed when reopening the app. 
 If the feed is empty and it is slowly loading again. Android has killed the app. Then the feed comes back to whatever comes down first from your relays :(  
 Is there any way to prevent such killing? 
 No. Even Gmail gets killed from time to time. It all depends on the amount of memory being used by all of your apps. If they need more, something will get killed. 

I need to change my architecture to store read positions in all tabs so that I can recover it. The issue is that encrypted storage on phones are quite slow. So, scrolling and saving things is not a good idea. I need to batch all these things up.  
 I have like 16 GB of RAM, how can it run out?! 
 Android forces each app to be with in 512MB memory, with some exceptions for 1GB ones. The browser will take a lot. Indie non-native apps usually take a ton of memory. Apps that play video or deal with large images also take a good amount just because of the content. So, it's not that difficult to reach maximum. 

+ Amethyst has a growing cache issue. We clean a lot of things your are not seeing anymore, but many events still stay and it grows until it explodes. For regular users this doesn't happen because Android usually kills Amethyst before the cache even passes 50MB or so. But for "pro" users, the cache might grow so much that it triggers its own destruction.

This is specially true if you see a lot of GIF profiles. Many animated profile pictures use 20-50MB. If there are too many on the screen, like on the Notification's little profile parties, it will easily pass over 512MB and then it's up to Android to decide to kill or not. 

And what to kill. Sometimes Android just kills threads and leaves things in an inconsistent state. But those are rare.  
 Very helpful, thank you!
My cache is +400MB, should I clean it and expect better performance? 
 No, that's just the disk cache. I would clean it when it crosses 1GB.  
 So is there aanything I can do to increase performance? 
 Wait, performance or posts jumping around? 

Performance should be pretty good these days, especially on higher-end devices. What are you seeing?

I am currently fighting the video player cache which hangs for a few milliseconds when opening new videos and is quite annoying. But other than that, Amethyst should run smoothly. 

You can go to the phone Settings/Apps/Amethyst and "Force Close" it to clear the memory cache and see if that was your source of issues.  
 Mainly talking about the jumping posts.

With hardcore Tor mode, first time app opening takes quite some time before new posts are loaded, I'm guessing because of circuit establishment. 
 I will try to figure out what can be happening with the jumping posts. I am not sure what can trigger that. The only code that makes that jump is a click on the home tab twice.

But yeah, Amethyst also downloads 50MB or so on every cold start (all your posts, all your DMs, all your notifications, etc). So, it's a 50MB over Tor issue. I need to reduce that amount and spread it better over the loading time.  
 i have noticed jumping in the thread view.  fairly easy to reproduce, you open a thread that is longer than the screen, and scroll up, it will keep jumping back to the post you opened.  i wasnt gonna mention it because i dont wanna distract AT ALL from relay feeds 😂 
 Yeah, that has been fixed. I am just delaying the new release to finish the Blossom integration that nostr:nprofile1qqsw9n8heusyq0el9f99tveg7r0rhcu9tznatuekxt764m78ymqu36cpz4mhxue69uhhyetvv9ujuat50phjummwv5hszymhwden5te0wahhgtn4w3ux7tn0dejj7qg4waehxw309an8yetwwvh82arcduhx7mn99uuwx66a has been bugging me about. 
 nostr:nprofile1qqsw9n8heusyq0el9f99tveg7r0rhcu9tznatuekxt764m78ymqu36cpz4mhxue69uhhyetvv9ujuat50phjummwv5hszymhwden5te0wahhgtn4w3ux7tn0dejj7qg4waehxw309an8yetwwvh82arcduhx7mn99uuwx66a hope its worth 😂 #relayfeeds #soclose 
 LOVE YOU VITOR 😍💕 
 Yes! 
 Yeah, for example profile pics take forever to load, potentially they can be cached locally? 
 It also seems that there's a slow scrolling up, maybe because pictures load at the top of the feed?