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.
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.