[Gamedevlists-brew] porting a database file from BREW to J2ME
Brought to you by:
vexxed72
From: Aaron I. <ais...@ap...> - 2004-12-11 19:55:03
|
Hello, Well I figure I might as well take advantage of our new freedoms... I'm doing a port of our Spanish/English dictionary and phrase book application from BREW to J2ME, and I'm a bit annoyed there is no file i/o functions in J2ME, just a stream reading function. The compressed database was designed to be very efficient in BREW, but I think it needs to be redesigned from the ground up to be efficient in J2ME. One small advantage is that I can rely on the built in zip/jar support to do some of the decompression work. The database is read-only, so I don't need to mess with RecordStores. 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? 2) Do any phones degrade in performance when large numbers of small files are stored in the jar file? Thank you! -Aaron |