I have MIDP application,We have 2 RMS. when the application is accessed first time, it will check for existing RMS,if no RMS found, it will dump the data from Resource file 1 to RMS1, and Resource file 2 to RMS2.
i.e. when i download and install the app, First time it will call the code
something like LoadRMSFromResource(resource,rmsname). For subsequent access of Application, it directly read From RMS and this method will not called.
jar size - 55k
resource file1- 55k
The problem is, when ***some of my users*** downaloding the app and install first time, it takes 5minutes to 9 minutes ! This is tooo much time.
What we are doing is
InputStreamReaderA.read(buf,0,1024*4) //Previously we were reading one character... then we are reading 1024 character...then 1024*4 character !!! Performance is imporoving... but still it is too much time !!!
On Second approach...we tried to remove getResrouceAsStream and we put All data, in separate class file, and it will write to RMS directly. but in that case, Jar file size is increased much (Approx 150k+) !
Any thoughts, how can we do some optimization ?
Thanks in Advance
Mobile 4 Mumbai