News for hackers. Stuff that matters.
Re:Show HN: LevelDB outperforms others on a cheap phone (Mic... by akhilcacharya on Friday March 25, 2016 @01:51PM (#11361527)
How many applications are really doing intensive read/writes on mobile?
Re:Show HN: LevelDB outperforms others on a cheap phone (Mic... by spotman on Friday March 25, 2016 @02:58PM (#11361953)
Define intensive.

But any well architected app that wants to work well without Internet will write many things to disk.

500 writes a second is very realistic when downloading some bulk content that will be used to power different states of the app. Now this might not be a continuous burst of 500 operations a second sustained, but many it has a handful of these bursts over several minutes. Given that, I would say that lots of mobile apps can have brief periods of tons of writes.

Re:Show HN: LevelDB outperforms others on a cheap phone (Mic... by maxpert on Friday March 25, 2016 @02:17PM (#11361722)
Just write a chat or email application that persists your conversation on disk. It goes crazy at times.
Re:Show HN: LevelDB outperforms others on a cheap phone (Mic... by habosa on Friday March 25, 2016 @01:59PM (#11361591)
On Android most well-architected applications will persist almost everything to disk before showing it to the user. Network directly to UI is too unstable.

It's not about intensive reads/writes (dozens of MB) it's about making each individual read or write very fast so you don't drop frames. On Android you have 16ms to draw each frame (60fps). If you have a DB request take 5ms then all of a sudden you're very likely to have jank in your app.

Re:Show HN: LevelDB outperforms others on a cheap phone (Mic... by lern_too_spel on Friday March 25, 2016 @06:59PM (#11363378)
Don't do I/O on the UI thread. The time it takes to do a write should not affect jank.
Re:Show HN: LevelDB outperforms others on a cheap phone (Mic... by charleslmunger on Friday March 25, 2016 @08:53PM (#11363849)
Yeah, a well architected application doesn't touch disk on the UI thread.