Reputation: 527
After adding <item>170,000</items>
to string.xml
. It becomes so slow in building workspace, I increase my heap space and jvm memory, but is still slow I had to wait 4 hours after every edit to save on eclipse before i think of running the program.
Any solution please? (Am using gnome 3.0 on ubuntu 11.10).
Upvotes: 2
Views: 464
Reputation: 163322
It's not clear to me exactly what you are doing. How are you building this XML file? Perhaps you are using Java string concatenation? That will certainly be extremely slow. I would do it using something like an XMLStreamWriter. But you need to describe your scenario in more detail, for example I don't see where Eclipse comes into it.
Upvotes: 0
Reputation: 93143
Instead of placing strings in string.xml
, why don't you try placing a file inside /res/raw
and when the app starts for the first time you insert it into a db?
Upvotes: 5