Re: [Gamedevlists-brew] porting a database file from BREW to J2ME
Brought to you by:
vexxed72
From: Tom P. <bre...@ac...> - 2004-12-11 22:26:35
|
> > 1) Has anyone noticed a phone that completely decompresses the JAR, > > including non-class files, into memory when the app is first loaded? That > > is, do all known J2ME phones keep the resources compressed until > > requested? > > Yes. A file is only loaded into memory when you open it. To be even more [...] > It might be interesting to just store the file in the jar, and not deflate > it. Maybe it would allow you do seek with good performance and without No, I'm assuming that Aaron is already asking whether it's okay to leave the file decompressed in the JAR, because he's worried that if the phone decompressed the JAR then it'd be too big. Nextel iDEN phones definitely decompress the JAR upon install. Install is a different step from download. The classes go into a program space, and resources go into a data space. There are iDEN-specific JAD properties for the decompressed size, e.g.: iDEN-Data-Space-Requirement: 112 iDEN-Program-Space-Requirement: 157 where the values are in KB. Offhand, I don't know of other phones that decompress the JAR, but I wouldn't assume Motorola is not or will not be the only one to use this optimization for J2ME performance. --t |