Oddbean new post about | logout
 One of the thongs that bug me about nostr:nprofile1qqs24yz8xftq8kkdf7q5yzf4v7tn2ek78v0zp2y427mj3sa7f34ggjcpzamhxue69uhhv6t5daezumn0wd68yvfwvdhk6tcppemhxue69uhkummn9ekx7mp0qyg8wumn8ghj7mn0wd68ytnddakj703s8dt a lot, is that the home feed frequently jumps to the top, and you have to sscroll for ages to get to the previous spot.
The number of duplicate content is really large... 
 The sroll but has happened to me in the past but on the duplicate content thing I don't know if I've had that issue in a while. Are you up to date?  
 To me, it seems like this happens when the total number of posts exceeds some threshold... When that threshold is exceeded, as new posts come in, the scroll position is changed. pulling you "up" in the scroll. 
 ... Total number of posts *in memory. 
 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? 
 Some apps are "active apps" that run in the background even when you're not using them, like signal, VPN, or amber/citrine. You see all active apps in the bottom right of the notification drawer.

Might this help to not kill amethyst? 
 Amethyst should never run in the background (besides the seconds that it takes to process notifications). 

If the app is running then there is something wrong with the setup. I have noticed that some graphene users find the app running in the background. Others have forced the app to keep running. It doesn't seem to be happening on Pixels and Samsungs.. I am still investigating what could be the issue.   
 I don't think I've ever seen amethyst there, I was just wondering if it might fix some issues. 
 Get same thing with damus sometimes. Super irritating 
 Dont let thongs bug you

nostr:nevent1qqswfc8wgx3kewpmx5p69a5s8uvwa3hantwumdwwrq5u00xwklzq78gpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhsyg9ha45tqck7dd9p9egl6559c8s7pmgw2y5vm2f6kyd5z594tmfjlspsgqqqqqqswh4f7p