puncsky / DrunkAudible

An Android/iOS application for listening audio books, talk shows, and TV programs.
0 stars 0 forks source link

Reduce RAM occupation and optimize for read. #28

Open puncsky opened 10 years ago

puncsky commented 10 years ago

Now it is 70+MB. To control it under 40MB.

puncsky commented 10 years ago

A lot of problems with database access.

puncsky commented 10 years ago

The application is read-intensive and there is no need to maintain join tables. Use them as KV store.

App

Server

puncsky commented 10 years ago

For global variables, subclassing instead of singleton.

http://stackoverflow.com/questions/708012/how-to-declare-global-variables-in-android

puncsky commented 10 years ago

Other than database access, the biggest issue is the list rendering. We should get back to ViewHolder pattern. And the downloading view dictionary design is not scalable.