5 ms·
Phone memory is severely limited and they have to unload images as you scroll to get the scrolling smooth. Scrolling forward and backward is a common user habit
by LoSboccacc 10y ago
Phone memory is severely limited and they have to unload images as you scroll to get the scrolling smooth. Scrolling forward and backward is a common user habit, and netwok latency is high, so you gonna need a local cache.
Lying on fsync doesn't seem a good option tho, even if developers abuse it.
- Animats 10y agoBut you don't need to fsync that. It's presumably in a temporary file, or you're just reading it.
- refulgentis 10y agoYou're the only one linking these two ideas together. The article expressly separates discussion of how Samsung gathered data to inform their filesystem design from discussion about Motorola's fsync implementation, and they're inherently separate concepts.
- pjc50 10y agoI suspect what happens is the developer just dumps everything in a sqlite database, which will fsync for you on commit.
- JBReefer 10y ago^ I think this is it. App developers are taught to reflexively use the local db to store data, not files - but may not understand the difference performance characteristics of this db. Someone (like me before reading this post) working on an app for the first time might not realize they're thrashing out fsyncs with UPDATES.
- TwoBit 10y agoMy phone's 4GB of RAM is severely limited?
- vosper 10y agoThe iPhone 6s was the first iPhone with more than 1gb of RAM. So, at least in that ecosystem, there's a long history of tight memory constraints. In non-Western countries there are lots of cheap and not-so-well specced Android phones, too.
- beambot 10y agoThe rest of the world isn't so lucky?
- RX14 10y agoI'm still running my moto g with 4gb of ram and it performs perfectly fine, even on latest android. If the moto g has aged so well I can guarantee you the market share of phones with <= 4gb ram is quite large.
- dnzm 10y agoI think you mean your Moto G has 1GB, or 2GB at most.
- floatboth 10y agoMy Nexus 5X only has 2GB.
- LoSboccacc 10y agoNot yours. Average phone. Apps aren't developed just for special snowflakes. Also, until recently, Android had a per-process memory limit.
- angry_octet 10y agoI know what you mean, but most phones don't even have 2GB. Most <$200 Android phones still have 512MB or 1GB. iPhones are notorious for lacking memory compared to their cost and a broken virtual memory system. Also, I have an insane amount of tabs open in chrome. I'm not sure what the rule is, but it seems like it keeps ~5 tabs in memory, depending on how much is in the current tab. (Tangent: Opera has a great offline feature for saving stuff before you get on the plane.) I'm actually a little amazed than I can scroll pinterest or tumblr as well as I can.